mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 04:48:06 +01:00
Pack motion notify in dematerialize icon.
This commit is contained in:
@@ -78,6 +78,7 @@ DoKaboom(WScreen *scr, Window win, int x, int y)
|
|||||||
int i;
|
int i;
|
||||||
int w, h;
|
int w, h;
|
||||||
int run;
|
int run;
|
||||||
|
XEvent event;
|
||||||
|
|
||||||
h = w = wPreferences.icon_size;
|
h = w = wPreferences.icon_size;
|
||||||
if (x < 0 || x + w > scr->scr_width || y < 0 || y + h > scr->scr_height)
|
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);
|
XFlush(dpy);
|
||||||
if(!run) wusleep(1000);
|
if(!run) wusleep(1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
while (XCheckTypedEvent(dpy, MotionNotify, &event)) {
|
||||||
|
}
|
||||||
|
XPutBackEvent(dpy, &event);
|
||||||
XFlush(dpy);
|
XFlush(dpy);
|
||||||
|
|
||||||
XUngrabServer(dpy);
|
XUngrabServer(dpy);
|
||||||
|
|||||||
Reference in New Issue
Block a user