aboutsummaryrefslogtreecommitdiffstats
path: root/sway/debug-tree.c
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2018-08-19 10:29:29 -0400
committerLibravatar GitHub <noreply@github.com>2018-08-19 10:29:29 -0400
commit9f913614cad6d157bbf33b012093dda6f3e7665e (patch)
treefd63244ea01baecc425fb8f3b159975beb5a31e5 /sway/debug-tree.c
parentMerge pull request #2487 from RyanDwyer/workspace-floating-list (diff)
parentUse enum for damage debug options (diff)
downloadsway-9f913614cad6d157bbf33b012093dda6f3e7665e.tar.gz
sway-9f913614cad6d157bbf33b012093dda6f3e7665e.tar.zst
sway-9f913614cad6d157bbf33b012093dda6f3e7665e.zip
Merge pull request #2478 from RyanDwyer/standardise-debug
Standardise debug variables
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