diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2019-03-18 20:52:56 +1000 |
---|---|---|
committer | Brian Ashworth <bosrsf04@gmail.com> | 2019-03-18 11:29:19 -0400 |
commit | e9a476244df7a8886fc6fc6785251198ed76e601 (patch) | |
tree | 377c048bbee8a63a9da69e3caa31e3ea405246be /include | |
parent | Document the title_format command (diff) | |
download | sway-e9a476244df7a8886fc6fc6785251198ed76e601.tar.gz sway-e9a476244df7a8886fc6fc6785251198ed76e601.tar.zst sway-e9a476244df7a8886fc6fc6785251198ed76e601.zip |
Remove debug tree
This feature has served its purpose. It's better to use IPC now.
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/debug.h | 22 | ||||
-rw-r--r-- | include/sway/server.h | 14 | ||||
-rw-r--r-- | include/sway/tree/root.h | 2 |
3 files changed, 14 insertions, 24 deletions
diff --git a/include/sway/debug.h b/include/sway/debug.h deleted file mode 100644 index 0e9bb056..00000000 --- a/include/sway/debug.h +++ /dev/null | |||
@@ -1,22 +0,0 @@ | |||
1 | #ifndef SWAY_DEBUG_H | ||
2 | #define SWAY_DEBUG_H | ||
3 | #include <stdbool.h> | ||
4 | |||
5 | struct sway_debug { | ||
6 | bool noatomic; // Ignore atomic layout updates | ||
7 | bool render_tree; // Render the tree overlay | ||
8 | bool txn_timings; // Log verbose messages about transactions | ||
9 | bool txn_wait; // Always wait for the timeout before applying | ||
10 | |||
11 | enum { | ||
12 | DAMAGE_DEFAULT, // Default behaviour | ||
13 | DAMAGE_HIGHLIGHT, // Highlight regions of the screen being damaged | ||
14 | DAMAGE_RERENDER, // Render the full output when any damage occurs | ||
15 | } damage; | ||
16 | }; | ||
17 | |||
18 | extern struct sway_debug debug; | ||
19 | |||
20 | void update_debug_tree(void); | ||
21 | |||
22 | #endif | ||
diff --git a/include/sway/server.h b/include/sway/server.h index 5eef7c1a..39cf4f18 100644 --- a/include/sway/server.h +++ b/include/sway/server.h | |||
@@ -74,6 +74,20 @@ struct sway_server { | |||
74 | 74 | ||
75 | struct sway_server server; | 75 | struct sway_server server; |
76 | 76 | ||
77 | struct sway_debug { | ||
78 | bool noatomic; // Ignore atomic layout updates | ||
79 | bool txn_timings; // Log verbose messages about transactions | ||
80 | bool txn_wait; // Always wait for the timeout before applying | ||
81 | |||
82 | enum { | ||
83 | DAMAGE_DEFAULT, // Default behaviour | ||
84 | DAMAGE_HIGHLIGHT, // Highlight regions of the screen being damaged | ||
85 | DAMAGE_RERENDER, // Render the full output when any damage occurs | ||
86 | } damage; | ||
87 | }; | ||
88 | |||
89 | struct sway_debug debug; | ||
90 | |||
77 | /* Prepares an unprivileged server_init by performing all privileged operations in advance */ | 91 | /* Prepares an unprivileged server_init by performing all privileged operations in advance */ |
78 | bool server_privileged_prepare(struct sway_server *server); | 92 | bool server_privileged_prepare(struct sway_server *server); |
79 | bool server_init(struct sway_server *server); | 93 | bool server_init(struct sway_server *server); |
diff --git a/include/sway/tree/root.h b/include/sway/tree/root.h index 9ff45eb5..9f6cd3bb 100644 --- a/include/sway/tree/root.h +++ b/include/sway/tree/root.h | |||
@@ -21,8 +21,6 @@ struct sway_root { | |||
21 | #endif | 21 | #endif |
22 | struct wl_list drag_icons; // sway_drag_icon::link | 22 | struct wl_list drag_icons; // sway_drag_icon::link |
23 | 23 | ||
24 | struct wlr_texture *debug_tree; | ||
25 | |||
26 | // Includes disabled outputs | 24 | // Includes disabled outputs |
27 | struct wl_list all_outputs; // sway_output::link | 25 | struct wl_list all_outputs; // sway_output::link |
28 | 26 | ||