diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-08-19 10:29:29 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-19 10:29:29 -0400 |
commit | 9f913614cad6d157bbf33b012093dda6f3e7665e (patch) | |
tree | fd63244ea01baecc425fb8f3b159975beb5a31e5 /sway/debug-tree.c | |
parent | 2c91afbb34f649fcd4de690be5bedba4d989a7f0 (diff) | |
parent | f9563d88f30fd70c5999520fa7f4b3d0dffd1a4c (diff) |
Merge pull request #2478 from RyanDwyer/standardise-debug
Standardise debug variables
Diffstat (limited to 'sway/debug-tree.c')
-rw-r--r-- | sway/debug-tree.c | 8 |
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 @@ #include <wlr/render/wlr_texture.h> #include <wlr/util/log.h> #include "config.h" +#include "sway/debug.h" #include "sway/input/input-manager.h" #include "sway/input/seat.h" +#include "sway/output.h" #include "sway/server.h" #include "sway/tree/container.h" #include "sway/tree/layout.h" @@ -12,6 +14,8 @@ #include "config.h" #include "pango.h" +struct sway_debug debug; + static const char *layout_to_str(enum sway_container_layout layout) { switch (layout) { case L_HORIZ: @@ -67,10 +71,8 @@ static int draw_container(cairo_t *cairo, struct sway_container *container, return height; } -bool enable_debug_tree = false; - void update_debug_tree() { - if (!enable_debug_tree) { + if (!debug.render_tree) { return; } |