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 authored and Carlos R. Mafra committed 2012-10-30 16:21:44 +00:00
1 parent 67f73e9d54
commit 700f8cc706
2 files changed
+2

No files matched your search

+1
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;
+1
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;