From e218053b3044cbc21b8c2485e0a1584ef344881f Mon Sep 17 00:00:00 2001 From: Marco Peereboom Date: Tue, 18 Jan 2011 19:18:31 +0000 Subject: [PATCH] fix crash as described in FS#37 --- scrotwm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scrotwm.c b/scrotwm.c index 33de7c2..a0d33b7 100644 --- a/scrotwm.c +++ b/scrotwm.c @@ -2834,6 +2834,9 @@ floating_toggle(struct swm_region *r, union arg *args) struct ws_win *win = r->ws->focus; union arg a; + if (win == NULL) + return; + ewmh_update_win_state(win, ewmh[_NET_WM_STATE_ABOVE].atom, _NET_WM_STATE_TOGGLE); -- 1.7.10.4