swayfx/sway
Ryan Dwyer dd8d2dedf7 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.
2018-12-29 14:45:42 +10:00
..
commands Implement hide_cursor <timeout> command 2018-12-25 13:31:56 +01:00
config Terminate swaybg in output_disable 2018-12-19 09:24:15 +01:00
desktop Fix wlr_box_intersection args for wlroots 1441 2018-12-22 18:54:08 +01:00
input Split image_surface handling into own function 2018-12-25 13:31:56 +01:00
tree Fix crash when scratchpad contains split containers 2018-12-29 14:45:42 +10:00
commands.c Implement hide_cursor <timeout> command 2018-12-25 13:31:56 +01:00
config.c Implement hide_cursor <timeout> command 2018-12-25 13:31:56 +01:00
criteria.c Replace _XOPEN_SOURCE with _POSIX_C_SOURCE 2018-11-25 17:19:43 +01:00
debug-tree.c Minor refactor of input manager 2018-10-20 13:11:43 +10:00
decoration.c Fix double free when unmapping any view 2018-11-15 15:22:09 +10:00
ipc-json.c added fullscreen_mode to get_tree output 2018-12-25 15:24:01 +01:00
ipc-server.c IPC_SUBSCRIBE ensure request object is an array 2018-12-22 14:02:29 +01:00
main.c Cleanup list code 2018-12-09 01:15:38 +00:00
meson.build Implement hide_cursor <timeout> command 2018-12-25 13:31:56 +01:00
security.c Replace _XOPEN_SOURCE with _POSIX_C_SOURCE 2018-11-25 17:19:43 +01:00
server.c Update for swaywm/wlroots#1387 2018-11-23 12:07:46 +01:00
sway-bar.5.scd Implement bar gaps 2018-11-28 11:24:14 -05:00
sway-input.5.scd Add scroll factor config option. 2018-11-18 13:49:30 -05:00
sway-output.5.scd fix typo 2018-12-02 20:48:53 +01:00
sway.1.scd Establish sway-output(5) 2018-10-14 10:52:57 -04:00
sway.5.scd Implement hide_cursor <timeout> command 2018-12-25 13:31:56 +01:00
swaynag.c Allow swaynag to be disabled 2018-10-08 09:59:38 -04:00
xdg_decoration.c Improve CSD logic 2018-09-27 22:51:37 +10:00