aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/focus.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands/focus.c')
-rw-r--r--sway/commands/focus.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sway/commands/focus.c b/sway/commands/focus.c
index 6b4f57c1..6771ca2f 100644
--- a/sway/commands/focus.c
+++ b/sway/commands/focus.c
@@ -377,6 +377,13 @@ struct cmd_results *cmd_focus(int argc, char **argv) {
377 if (container_is_scratchpad_hidden_or_child(container)) { 377 if (container_is_scratchpad_hidden_or_child(container)) {
378 root_scratchpad_show(container); 378 root_scratchpad_show(container);
379 } 379 }
380 // if we are switching to a container under a fullscreen window, we first
381 // need to exit fullscreen so that the newly focused container becomes visible
382 struct sway_container *obstructing = container_obstructing_fullscreen_container(container);
383 if (obstructing) {
384 container_fullscreen_disable(obstructing);
385 arrange_root();
386 }
380 seat_set_focus_container(seat, container); 387 seat_set_focus_container(seat, container);
381 seat_consider_warp_to_focus(seat); 388 seat_consider_warp_to_focus(seat);
382 container_raise_floating(container); 389 container_raise_floating(container);