diff options
author | Ronan Pigott <rpigott@berkeley.edu> | 2020-01-14 17:08:01 -0700 |
---|---|---|
committer | Brian Ashworth <bosrsf04@gmail.com> | 2020-01-16 21:48:25 -0500 |
commit | d88d4bbd9d363435a4d65191446a497de9031cca (patch) | |
tree | 369c3bf76bea3013dc08a6796e1ca7225216dc0d /sway/commands/focus.c | |
parent | desktop/output: fix mem leak in handle_new_output (diff) | |
download | sway-d88d4bbd9d363435a4d65191446a497de9031cca.tar.gz sway-d88d4bbd9d363435a4d65191446a497de9031cca.tar.zst sway-d88d4bbd9d363435a4d65191446a497de9031cca.zip |
Fix crash when showing scratchpad hidden split containers
Diffstat (limited to 'sway/commands/focus.c')
-rw-r--r-- | sway/commands/focus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands/focus.c b/sway/commands/focus.c index d745aab5..56c3d981 100644 --- a/sway/commands/focus.c +++ b/sway/commands/focus.c | |||
@@ -365,7 +365,7 @@ struct cmd_results *cmd_focus(int argc, char **argv) { | |||
365 | } | 365 | } |
366 | 366 | ||
367 | if (argc == 0 && container) { | 367 | if (argc == 0 && container) { |
368 | if (container_is_scratchpad_hidden(container)) { | 368 | if (container_is_scratchpad_hidden_or_child(container)) { |
369 | root_scratchpad_show(container); | 369 | root_scratchpad_show(container); |
370 | } | 370 | } |
371 | seat_set_focus_container(seat, container); | 371 | seat_set_focus_container(seat, container); |