diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-04-06 11:49:27 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2018-04-06 11:49:27 -0400 |
commit | 603e0e42c577026f1c688c393989e65dc3482808 (patch) | |
tree | 7e2635f8745ed6141f900359eeff9b8d9f418cea /sway/tree | |
parent | a06052ad9da8f5e03b17aa791be49189f21b7a4f (diff) | |
download | sway-603e0e42c577026f1c688c393989e65dc3482808.tar.xz |
Add debug tree view
Diffstat (limited to 'sway/tree')
-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 @@ #include <string.h> #include <wlr/types/wlr_output.h> #include <wlr/types/wlr_output_layout.h> +#include "sway/debug.h" #include "sway/tree/container.h" #include "sway/tree/layout.h" #include "sway/output.h" @@ -431,6 +432,11 @@ void container_move(struct sway_container *container, return; } + if (old_parent) { + seat_set_focus(config->handler_context.seat, old_parent); + seat_set_focus(config->handler_context.seat, container); + } + struct sway_container *last_ws = old_parent; struct sway_container *next_ws = container->parent; if (last_ws && last_ws->type != C_WORKSPACE) { @@ -594,6 +600,8 @@ void arrange_windows(struct sway_container *container, break; } container_damage_whole(container); + // TODO: Make this less shitty + update_debug_tree(); } static void apply_horiz_layout(struct sway_container *container, |