diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-12-29 14:34:34 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-12-29 14:45:42 +1000 |
commit | dd8d2dedf79ef1000ec0495e1c1c27210be8919f (patch) | |
tree | ca60bdc856420faf46f552424c3838bcf779b6fe /assets/Sway_Logo+Text_Ver3.svg | |
parent | 9bf1b7a029afe2fdb07cb2bfe35cca4ad76098f9 (diff) |
Fix crash when scratchpad contains split containers
To reproduce:
* Launch two terminals in a workspace
* `focus parent` to select both terminals
* `move scratchpad`
* `scratchpad show` to show the terminals
* `scratchpad show` to hide the terminals
* `scratchpad show` - crash
When hiding the terminals, it should be moving focus to whatever is in
the workspace, but this wasn't happening because the focus check didn't
consider split containers. So the terminals were hidden in the
scratchpad while still having focus. This confused the next invocation
of scratchpad show, causing it to attempt to hide them instead of show
them, and the hide-related code caused a crash when it tried to arrange
the workspace which was NULL.
This patch corrects the focus check.
Diffstat (limited to 'assets/Sway_Logo+Text_Ver3.svg')
0 files changed, 0 insertions, 0 deletions