X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fepicycle.c;h=b812e6ae38968adb6e036c9b8aed8d5e8e43c294;hp=eed186ca75551629d9b51cdc336ca949619b3797;hb=f65151994eba80ecabcdac6eef6fa0dde7e2d45b;hpb=8e0f39b4a12b9a908af2b3b175ebe87c14b4a6ab diff --git a/hacks/epicycle.c b/hacks/epicycle.c index eed186ca..b812e6ae 100644 --- a/hacks/epicycle.c +++ b/hacks/epicycle.c @@ -534,6 +534,10 @@ check_events (void) /* X event handler [ rhess ] */ printf("re-mapped!\n"); unmapped = 0; break; + + default: + screenhack_handle_event(dpy, &e); + break; } /* If we're unmapped, don't return to the caller. This @@ -580,8 +584,11 @@ setup(void) } else { - XSelectInput(dpy, window, - ExposureMask|ButtonPressMask|StructureNotifyMask); + XWindowAttributes xgwa; + XGetWindowAttributes (dpy, window, &xgwa); + XSelectInput (dpy, window, + xgwa.your_event_mask | ExposureMask | + ButtonPressMask |StructureNotifyMask); } } @@ -814,6 +821,7 @@ screenhack(Display *disp, Window win) { XSync (dpy, False); + check_events(); if (holdtime) sleep(holdtime); /* show complete figure for a bit. */ @@ -821,6 +829,7 @@ screenhack(Display *disp, Window win) } + check_events(); if (delay) usleep (delay);