summaryrefslogtreecommitdiffstats
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 0cb499e7..ea0826b9 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:
@@ -67,10 +71,8 @@ static int draw_container(cairo_t *cairo, struct sway_container *container,
67 return height; 71 return height;
68} 72}
69 73
70bool enable_debug_tree = false;
71
72void update_debug_tree() { 74void update_debug_tree() {
73 if (!enable_debug_tree) { 75 if (!debug.render_tree) {
74 return; 76 return;
75 } 77 }
76 78