mirror of
https://github.com/gryf/wmaker.git
synced 2026-10-06 00:50:34 +02:00
Pack motion notify in dematerialize icon.
This commit is contained in:
1 parent
5bdb028648
commit
446c02aa5c
1 file changed
+5
@@ -78,6 +78,7 @@ DoKaboom(WScreen *scr, Window win, int x, int y)
|
||||
int i;
|
||||
int w, h;
|
||||
int run;
|
||||
XEvent event;
|
||||
|
||||
h = w = wPreferences.icon_size;
|
||||
if (x < 0 || x + w > scr->scr_width || y < 0 || y + h > scr->scr_height)
|
||||
@@ -126,6 +127,10 @@ DoKaboom(WScreen *scr, Window win, int x, int y)
|
||||
XFlush(dpy);
|
||||
if(!run) wusleep(1000);
|
||||
}
|
||||
|
||||
while (XCheckTypedEvent(dpy, MotionNotify, &event)) {
|
||||
}
|
||||
XPutBackEvent(dpy, &event);
|
||||
XFlush(dpy);
|
||||
|
||||
XUngrabServer(dpy);
|
||||
|
||||
Reference in new issue
Block a user