JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Fix possible segfault when a floater receives a configurerequest.
authorReginald Kennedy <rk@rejii.com>
Wed, 5 Sep 2012 14:47:31 +0000 (22:47 +0800)
committerReginald Kennedy <rk@rejii.com>
Wed, 5 Sep 2012 14:49:57 +0000 (22:49 +0800)
spectrwm.c

index ff3dfbd..0abdd65 100644 (file)
@@ -7662,9 +7662,10 @@ configurerequest(xcb_configure_request_event_t *e)
                        WIDTH(win) = win->g_float.w;
                        HEIGHT(win) = win->g_float.h;
 
-                       stack_floater(win, win->ws->r);
-
-                       focus_flush();
+                       if (r) {
+                               stack_floater(win, r);
+                               focus_flush();
+                       }
                } else {
                        config_win(win, e);
                        xcb_flush(conn);