ftp://netsw.org/x11/tools/desktop/xscreensaver-4.07.tar.gz
[xscreensaver] / driver / splash.c
index 55c4e9be37398756e51e71b56ede4d3b1f00e4e8..4a5ff73375d03b6c53c3bdf4d0163bafe699987d 100644 (file)
@@ -732,6 +732,7 @@ handle_splash_event (saver_info *si, XEvent *event)
          if (which && sp->pressed == which)
            {
              destroy_splash_window (si);
+              sp = si->sp_data;
              switch (which)
                {
                case 1: do_demo (si); break;
@@ -747,8 +748,9 @@ handle_splash_event (saver_info *si, XEvent *event)
               /* click and release on the window but not in a button:
                  treat that as "dismiss the splash dialog." */
              destroy_splash_window (si);
+              sp = si->sp_data;
             }
-         sp->pressed = 0;
+         if (sp) sp->pressed = 0;
          update_splash_window (si);
        }
       break;