diff options
Diffstat (limited to 'sway/tree/layout.c')
-rw-r--r-- | sway/tree/layout.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sway/tree/layout.c b/sway/tree/layout.c index 0011a9e3..e633acc6 100644 --- a/sway/tree/layout.c +++ b/sway/tree/layout.c | |||
@@ -6,6 +6,7 @@ | |||
6 | #include <string.h> | 6 | #include <string.h> |
7 | #include <wlr/types/wlr_output.h> | 7 | #include <wlr/types/wlr_output.h> |
8 | #include <wlr/types/wlr_output_layout.h> | 8 | #include <wlr/types/wlr_output_layout.h> |
9 | #include "sway/debug.h" | ||
9 | #include "sway/tree/container.h" | 10 | #include "sway/tree/container.h" |
10 | #include "sway/tree/layout.h" | 11 | #include "sway/tree/layout.h" |
11 | #include "sway/output.h" | 12 | #include "sway/output.h" |
@@ -431,6 +432,11 @@ void container_move(struct sway_container *container, | |||
431 | return; | 432 | return; |
432 | } | 433 | } |
433 | 434 | ||
435 | if (old_parent) { | ||
436 | seat_set_focus(config->handler_context.seat, old_parent); | ||
437 | seat_set_focus(config->handler_context.seat, container); | ||
438 | } | ||
439 | |||
434 | struct sway_container *last_ws = old_parent; | 440 | struct sway_container *last_ws = old_parent; |
435 | struct sway_container *next_ws = container->parent; | 441 | struct sway_container *next_ws = container->parent; |
436 | if (last_ws && last_ws->type != C_WORKSPACE) { | 442 | if (last_ws && last_ws->type != C_WORKSPACE) { |
@@ -594,6 +600,8 @@ void arrange_windows(struct sway_container *container, | |||
594 | break; | 600 | break; |
595 | } | 601 | } |
596 | container_damage_whole(container); | 602 | container_damage_whole(container); |
603 | // TODO: Make this less shitty | ||
604 | update_debug_tree(); | ||
597 | } | 605 | } |
598 | 606 | ||
599 | static void apply_horiz_layout(struct sway_container *container, | 607 | static void apply_horiz_layout(struct sway_container *container, |