diff options
author | Alexander 'z33ky' Hirsch <1zeeky@gmail.com> | 2015-08-20 02:10:45 +0200 |
---|---|---|
committer | Alexander 'z33ky' Hirsch <1zeeky@gmail.com> | 2015-08-20 02:30:22 +0200 |
commit | c068f47ce392dab0374b619d6a501ab6974749cc (patch) | |
tree | edfb68fc43bfe13f95c51a3acd3394813e60b7e6 /sway | |
parent | 6f424ff6b82d86a174319ffd534e517b2ae6d367 (diff) | |
download | sway-c068f47ce392dab0374b619d6a501ab6974749cc.tar.xz |
Fix potential crash when toggling fullscreen mode
Diffstat (limited to 'sway')
-rw-r--r-- | sway/handlers.c | 2 |
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 // i3 just lets it become fullscreen wlc_view_set_state(view, state, toggle); c = get_swayc_for_handle(view, &root_container); - sway_log(L_DEBUG, "setting view %ld %s, fullscreen %d", view, c->name, toggle); if (c) { + sway_log(L_DEBUG, "setting view %ld %s, fullscreen %d", view, c->name, toggle); arrange_windows(c->parent, -1, -1); // Set it as focused window for that workspace if its going fullscreen if (toggle) { |