From 446c02aa5c843d16c0c945e32603ea7cbfffd783 Mon Sep 17 00:00:00 2001 From: id Date: Fri, 23 Apr 1999 19:11:00 +0000 Subject: [PATCH] Pack motion notify in dematerialize icon. --- src/superfluous.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/superfluous.c b/src/superfluous.c index ec1f1db7..c4033e4d 100644 --- a/src/superfluous.c +++ b/src/superfluous.c @@ -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);