X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fxlockmore.c;h=7624b4875c904a16b5c97a1ac554365f9959f9d4;hp=64907a7b5b9d186fd6717f83a65fa89d0926b02f;hb=ffd8c0873576a9e3065696a624dce6b766b77062;hpb=9c9d475ff889ed8be02e8ce8c17da28b93278fca diff --git a/hacks/xlockmore.c b/hacks/xlockmore.c index 64907a7b..7624b487 100644 --- a/hacks/xlockmore.c +++ b/hacks/xlockmore.c @@ -1,5 +1,5 @@ /* xlockmore.c --- xscreensaver compatibility layer for xlockmore modules. - * xscreensaver, Copyright (c) 1997, 1998, 2001, 2002 + * xscreensaver, Copyright (c) 1997, 1998, 2001, 2002, 2004 * Jamie Zawinski * * Permission to use, copy, modify, distribute, and sell this software and its @@ -24,11 +24,13 @@ #include #include "screenhack.h" #include "xlockmoreI.h" +#include #define countof(x) (sizeof((x))/sizeof(*(x))) #define MAX_COLORS (1L<<13) +extern XtAppContext app; extern ModeSpecOpt xlockmore_opts[]; extern const char *app_defaults; @@ -217,6 +219,9 @@ xlockmore_handle_events (ModeInfo *mi, void (*reshape) (ModeInfo *, int, int), Bool (*hook) (ModeInfo *, XEvent *)) { + if (XtAppPending (app) & (XtIMTimer|XtIMAlternateInput)) + XtAppProcessEvent (app, XtIMTimer|XtIMAlternateInput); + while (XPending (mi->dpy)) { XEvent event;