1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 12:28:22 +01:00

Brief documentation on wAppIconFor() and wWindowFor().

Brief comment on what wAppIconFor() and wWindowFor() do, as it
may not be immediately obvious.

Given a raw X11 Window they will find the AppIcon (or WWindow,
respectively) associated with that window.  Thus they can map an
X11 object to a Window Maker internal object.
This commit is contained in:
Iain Patterson
2012-10-30 09:10:14 -07:00
committed by Carlos R. Mafra
parent 67f73e9d54
commit 700f8cc706
2 changed files with 2 additions and 0 deletions

View File

@@ -1018,6 +1018,7 @@ static void remove_from_appicon_list(WScreen *scr, WAppIcon *appicon)
appicon->next = NULL;
}
/* Return the AppIcon associated with a given (Xlib) Window. */
WAppIcon *wAppIconFor(Window window)
{
WObjDescriptor *desc;

View File

@@ -141,6 +141,7 @@ static void appearanceObserver(void *self, WMNotification * notif)
}
/* Return the WWindow associated with a given (Xlib) Window. */
WWindow *wWindowFor(Window window)
{
WObjDescriptor *desc;