X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fxlockmore.c;h=58d6acd9b3c2379ff338a431c8b5e743519e53e5;hp=6018469239a478a7c0cac736843603b1b00abb56;hb=de460e831dc8578acfa8b72251ab9346c99c1f96;hpb=6b1c86cf395f59389e4ece4ea8f4bea2c332745b diff --git a/hacks/xlockmore.c b/hacks/xlockmore.c index 60184692..58d6acd9 100644 --- a/hacks/xlockmore.c +++ b/hacks/xlockmore.c @@ -1,6 +1,5 @@ /* xlockmore.c --- xscreensaver compatibility layer for xlockmore modules. - * xscreensaver, Copyright (c) 1997, 1998, 2001, 2002, 2004, 2006 - * Jamie Zawinski + * xscreensaver, Copyright (c) 1997-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 @@ -521,7 +520,7 @@ xlockmore_reshape (Display *dpy, Window window, void *closure, unsigned int w, unsigned int h) { ModeInfo *mi = (ModeInfo *) closure; - if (mi->xlmft->hack_reshape) + if (mi && mi->xlmft->hack_reshape) { XGetWindowAttributes (dpy, window, &mi->xgwa); mi->xlmft->hack_reshape (mi, mi->xgwa.width, mi->xgwa.height); @@ -532,7 +531,7 @@ static Bool xlockmore_event (Display *dpy, Window window, void *closure, XEvent *event) { ModeInfo *mi = (ModeInfo *) closure; - if (mi->xlmft->hack_handle_events) + if (mi && mi->xlmft->hack_handle_events) { mi->xlmft->hack_handle_events (mi, event); /* Since xlockmore hacks don't tell us whether they handled the