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:
committed by
Carlos R. Mafra
parent
67f73e9d54
commit
700f8cc706
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user