From: Reginald Kennedy Date: Wed, 5 Sep 2012 14:47:31 +0000 (+0800) Subject: Fix possible segfault when a floater receives a configurerequest. X-Git-Url: https://jasonwoof.com/gitweb/?a=commitdiff_plain;ds=inline;h=80375ed70df8b3d5fb5a8b89b9f6a98b4691382b;p=spectrwm.git Fix possible segfault when a floater receives a configurerequest. --- diff --git a/spectrwm.c b/spectrwm.c index ff3dfbd..0abdd65 100644 --- a/spectrwm.c +++ b/spectrwm.c @@ -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);