From 700f8cc706e8bdceb4675d7de77c05e35b37f200 Mon Sep 17 00:00:00 2001 From: Iain Patterson Date: Tue, 30 Oct 2012 09:10:14 -0700 Subject: [PATCH] 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. --- src/appicon.c | 1 + src/window.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/appicon.c b/src/appicon.c index 6be30577..77c5e304 100644 --- a/src/appicon.c +++ b/src/appicon.c @@ -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; diff --git a/src/window.c b/src/window.c index 4691021f..199613c7 100644 --- a/src/window.c +++ b/src/window.c @@ -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; -- 2.11.4.GIT