aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Alexander 'z33ky' Hirsch <1zeeky@gmail.com>2015-08-20 02:10:45 +0200
committerLibravatar Alexander 'z33ky' Hirsch <1zeeky@gmail.com>2015-08-20 02:30:22 +0200
commitc068f47ce392dab0374b619d6a501ab6974749cc (patch)
treeedfb68fc43bfe13f95c51a3acd3394813e60b7e6
parentfixed default active_workspace, and more use of set_focused_container_for(...) (diff)
downloadsway-c068f47ce392dab0374b619d6a501ab6974749cc.tar.gz
sway-c068f47ce392dab0374b619d6a501ab6974749cc.tar.zst
sway-c068f47ce392dab0374b619d6a501ab6974749cc.zip
Fix potential crash when toggling fullscreen mode
-rw-r--r--sway/handlers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/handlers.c b/sway/handlers.c
index a6dbf94c..0bb181cc 100644
--- a/sway/handlers.c
+++ b/sway/handlers.c
@@ -290,8 +290,8 @@ static void handle_view_state_request(wlc_handle view, enum wlc_view_state_bit s
290 // i3 just lets it become fullscreen 290 // i3 just lets it become fullscreen
291 wlc_view_set_state(view, state, toggle); 291 wlc_view_set_state(view, state, toggle);
292 c = get_swayc_for_handle(view, &root_container); 292 c = get_swayc_for_handle(view, &root_container);
293 sway_log(L_DEBUG, "setting view %ld %s, fullscreen %d", view, c->name, toggle);
294 if (c) { 293 if (c) {
294 sway_log(L_DEBUG, "setting view %ld %s, fullscreen %d", view, c->name, toggle);
295 arrange_windows(c->parent, -1, -1); 295 arrange_windows(c->parent, -1, -1);
296 // Set it as focused window for that workspace if its going fullscreen 296 // Set it as focused window for that workspace if its going fullscreen
297 if (toggle) { 297 if (toggle) {