X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fscreenhack.c;h=5a377233fc586dea7585232c266de7868c9c31d1;hp=8ea025d0da6068ba5e3b8795718a14d61c960d27;hb=6b1c86cf395f59389e4ece4ea8f4bea2c332745b;hpb=07faf451b99879183ed7e909e43a0e065be1ee7f diff --git a/hacks/screenhack.c b/hacks/screenhack.c index 8ea025d0..5a377233 100644 --- a/hacks/screenhack.c +++ b/hacks/screenhack.c @@ -1,4 +1,4 @@ -/* xscreensaver, Copyright (c) 1992-2006 Jamie Zawinski +/* xscreensaver, Copyright (c) 1992-2008 Jamie Zawinski * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that @@ -581,7 +581,7 @@ run_screenhack_table (Display *dpy, { unsigned long delay = ft->draw_cb (dpy, window, closure); #ifdef DEBUG_PAIR - unsigned long delay2; + unsigned long delay2 = 0; if (window2) delay2 = ft->draw_cb (dpy, window2, closure2); #endif @@ -684,7 +684,7 @@ init_window (Display *dpy, Widget toplevel, const char *title) window = XtWindow (toplevel); XGetWindowAttributes (dpy, window, &xgwa); XSelectInput (dpy, window, - (xgwa.your_event_mask | KeyPressMask | + (xgwa.your_event_mask | KeyPressMask | KeyReleaseMask | ButtonPressMask | ButtonReleaseMask)); XChangeProperty (dpy, window, XA_WM_PROTOCOLS, XA_ATOM, 32, PropModeReplace,