mirror of
https://github.com/swaywm/sway.git
synced 2025-11-10 13:29:51 -05:00
fixed floating window crashing bug
This commit is contained in:
parent
a246e9b4c7
commit
af1b3d9755
2 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue