aboutsummaryrefslogtreecommitdiffstats
path: root/sway/debug-tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/debug-tree.c')
-rw-r--r--sway/debug-tree.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sway/debug-tree.c b/sway/debug-tree.c
index f3465afe..b47a403b 100644
--- a/sway/debug-tree.c
+++ b/sway/debug-tree.c
@@ -3,8 +3,10 @@
3#include <wlr/render/wlr_texture.h> 3#include <wlr/render/wlr_texture.h>
4#include <wlr/util/log.h> 4#include <wlr/util/log.h>
5#include "config.h" 5#include "config.h"
6#include "sway/debug.h"
6#include "sway/input/input-manager.h" 7#include "sway/input/input-manager.h"
7#include "sway/input/seat.h" 8#include "sway/input/seat.h"
9#include "sway/output.h"
8#include "sway/server.h" 10#include "sway/server.h"
9#include "sway/tree/container.h" 11#include "sway/tree/container.h"
10#include "sway/tree/layout.h" 12#include "sway/tree/layout.h"
@@ -12,6 +14,8 @@
12#include "config.h" 14#include "config.h"
13#include "pango.h" 15#include "pango.h"
14 16
17struct sway_debug debug;
18
15static const char *layout_to_str(enum sway_container_layout layout) { 19static const char *layout_to_str(enum sway_container_layout layout) {
16 switch (layout) { 20 switch (layout) {
17 case L_HORIZ: 21 case L_HORIZ:
@@ -69,10 +73,8 @@ static int draw_container(cairo_t *cairo, struct sway_container *container,
69 return height; 73 return height;
70} 74}
71 75
72bool enable_debug_tree = false;
73
74void update_debug_tree() { 76void update_debug_tree() {
75 if (!enable_debug_tree) { 77 if (!debug.render_tree) {
76 return; 78 return;
77 } 79 }
78 80