From 8ce5f2a21bfc2194a0cca1da223778bcb29872af Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sun, 6 Mar 2011 22:02:02 +0100 Subject: [PATCH] Bugfix: Fix crash with transient dock clients caused by 7154fecbb --- src/manage.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/manage.c b/src/manage.c index 53526f6a..192bcbf3 100644 --- a/src/manage.c +++ b/src/manage.c @@ -252,9 +252,9 @@ void manage_window(xcb_window_t window, xcb_get_window_attributes_cookie_t cooki want_floating = true; if (config.popup_during_fullscreen == PDF_LEAVE_FULLSCREEN) { - Con *ws = con_get_workspace(nc); - Con *fs = con_get_fullscreen_con(ws); - if (fs != NULL) { + Con *ws, *fs; + if ((ws = con_get_workspace(nc)) && + (fs = con_get_fullscreen_con(ws))) { LOG("There is a fullscreen window, leaving fullscreen mode\n"); con_toggle_fullscreen(fs); } -- 2.39.5