mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 04:48:06 +01:00
Paint app icons when updated
Add calls to wAppIconPaint when wIconUpdate is called on the app icon. Signed-off-by: Brad Jorsch <anomie@users.sourceforge.net>
This commit is contained in:
committed by
Carlos R. Mafra
parent
ee1f13da45
commit
125cba8f82
10
src/window.c
10
src/window.c
@@ -518,7 +518,7 @@ static void fixLeaderProperties(WWindow *wwin)
|
||||
|
||||
/* Make sure we get notification when this window is destroyed */
|
||||
if (XGetWindowAttributes(dpy, window, &attr))
|
||||
XSelectInput(dpy, window, attr.your_event_mask | StructureNotifyMask);
|
||||
XSelectInput(dpy, window, attr.your_event_mask | StructureNotifyMask | PropertyChangeMask);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1543,7 +1543,13 @@ void wUnmanageWindow(WWindow *wwin, Bool restore, Bool destroyed)
|
||||
if (!wwin->flags.internal_window)
|
||||
XRemoveFromSaveSet(dpy, wwin->client_win);
|
||||
|
||||
XSelectInput(dpy, wwin->client_win, NoEventMask);
|
||||
/* If this is a leader window, we still need to listen for
|
||||
* DestroyNotify and PropertyNotify. */
|
||||
if (wApplicationOf(wwin->client_win)) {
|
||||
XSelectInput(dpy, wwin->client_win, StructureNotifyMask | PropertyChangeMask);
|
||||
} else {
|
||||
XSelectInput(dpy, wwin->client_win, NoEventMask);
|
||||
}
|
||||
|
||||
XUngrabButton(dpy, AnyButton, AnyModifier, wwin->client_win);
|
||||
XUngrabKey(dpy, AnyKey, AnyModifier, wwin->client_win);
|
||||
|
||||
Reference in New Issue
Block a user