diff options
author | taiyu <[email protected]> | 2015-08-18 04:09:43 -0700 |
---|---|---|
committer | taiyu <[email protected]> | 2015-08-18 04:09:43 -0700 |
commit | af1b3d97550c749de4e71f50784dc17f1a31c135 (patch) | |
tree | 801734bb8261b6e519a22e5fd44c1cccc957ae8e /sway/layout.c | |
parent | a246e9b4c7d280a69bfc525c03246ddfd75f54fd (diff) |
fixed floating window crashing bug
Diffstat (limited to 'sway/layout.c')
-rw-r--r-- | sway/layout.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/layout.c b/sway/layout.c index 8ff5c4b7..d072c410 100644 --- a/sway/layout.c +++ b/sway/layout.c @@ -226,7 +226,8 @@ void arrange_windows(swayc_t *container, int width, int height) { // will be kept up to date so that more recently focused views // have higher indexes // This is conditional on there not being a fullscreen view in the workspace - if (!(wlc_view_get_state(container->focused->handle) & WLC_BIT_FULLSCREEN)) { + if (!container->focused + || !(wlc_view_get_state(container->focused->handle) & WLC_BIT_FULLSCREEN)) { wlc_view_bring_to_front(view->handle); } } |