aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2018-04-06 11:49:27 -0400
committerLibravatar Drew DeVault <sir@cmpwn.com>2018-04-06 11:49:27 -0400
commit603e0e42c577026f1c688c393989e65dc3482808 (patch)
tree7e2635f8745ed6141f900359eeff9b8d9f418cea /include
parentFix splitting workspaces (diff)
downloadsway-603e0e42c577026f1c688c393989e65dc3482808.tar.gz
sway-603e0e42c577026f1c688c393989e65dc3482808.tar.zst
sway-603e0e42c577026f1c688c393989e65dc3482808.zip
Add debug tree view
Diffstat (limited to 'include')
-rw-r--r--include/sway/debug.h7
-rw-r--r--include/sway/tree/layout.h4
2 files changed, 10 insertions, 1 deletions
diff --git a/include/sway/debug.h b/include/sway/debug.h
new file mode 100644
index 00000000..2430d319
--- /dev/null
+++ b/include/sway/debug.h
@@ -0,0 +1,7 @@
1#ifndef SWAY_DEBUG_H
2#define SWAY_DEBUG_H
3
4extern bool enable_debug_tree;
5void update_debug_tree();
6
7#endif
diff --git a/include/sway/tree/layout.h b/include/sway/tree/layout.h
index fc5ce21f..49ae00e4 100644
--- a/include/sway/tree/layout.h
+++ b/include/sway/tree/layout.h
@@ -1,7 +1,7 @@
1#ifndef _SWAY_LAYOUT_H 1#ifndef _SWAY_LAYOUT_H
2#define _SWAY_LAYOUT_H 2#define _SWAY_LAYOUT_H
3
4#include <wlr/types/wlr_output_layout.h> 3#include <wlr/types/wlr_output_layout.h>
4#include <wlr/render/wlr_texture.h>
5#include "sway/tree/container.h" 5#include "sway/tree/container.h"
6 6
7enum movement_direction { 7enum movement_direction {
@@ -29,6 +29,8 @@ struct sway_root {
29 29
30 struct wl_list xwayland_unmanaged; // sway_xwayland_unmanaged::link 30 struct wl_list xwayland_unmanaged; // sway_xwayland_unmanaged::link
31 31
32 struct wlr_texture *debug_tree;
33
32 struct { 34 struct {
33 struct wl_signal new_container; 35 struct wl_signal new_container;
34 } events; 36 } events;