diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-08-03 17:55:58 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-08-03 17:55:58 +1000 |
commit | 854c5fbec872ee093cc2728558f69f7f567f3136 (patch) | |
tree | 92072d967e15605859c723e9c43b1c8457137ccb /sway/commands/output/dpms.c | |
parent | 5ac3509d546ee2e585ecb58aeea94ff9f3e8259d (diff) |
Fix crash when fullscreen view closes on inactive workspace
When a view unmaps, normally the surviving ancestor (ie. after reaping)
needs to be arranged. When a fullscreen view unmaps, it arranges the
workspace rather than the surviving ancestor, but didn't handle cases
where the workspace itself was reaped. This happens if the workspace is
not currently shown and the fullscreen view was the last container on
that workspace.
This commit rewrites this part of view_unmap so it's more readable, and
fixes the crash by not arranging the workspace if it's been reaped. Note
that it no longer arranges the output under any circumstance - this
wasn't required anyway.
Diffstat (limited to 'sway/commands/output/dpms.c')
0 files changed, 0 insertions, 0 deletions