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 | 38bd60c4b3e70cb5584529358162f8b37d43669f (diff) |
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 @@ -#ifndef SWAY_DEBUG_H -#define SWAY_DEBUG_H -#include <stdbool.h> - -struct sway_debug { - bool noatomic; // Ignore atomic layout updates - bool render_tree; // Render the tree overlay - bool txn_timings; // Log verbose messages about transactions - bool txn_wait; // Always wait for the timeout before applying - - enum { - DAMAGE_DEFAULT, // Default behaviour - DAMAGE_HIGHLIGHT, // Highlight regions of the screen being damaged - DAMAGE_RERENDER, // Render the full output when any damage occurs - } damage; -}; - -extern struct sway_debug debug; - -void update_debug_tree(void); - -#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 { struct sway_server server; +struct sway_debug { + bool noatomic; // Ignore atomic layout updates + bool txn_timings; // Log verbose messages about transactions + bool txn_wait; // Always wait for the timeout before applying + + enum { + DAMAGE_DEFAULT, // Default behaviour + DAMAGE_HIGHLIGHT, // Highlight regions of the screen being damaged + DAMAGE_RERENDER, // Render the full output when any damage occurs + } damage; +}; + +struct sway_debug debug; + /* Prepares an unprivileged server_init by performing all privileged operations in advance */ bool server_privileged_prepare(struct sway_server *server); 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 { #endif struct wl_list drag_icons; // sway_drag_icon::link - struct wlr_texture *debug_tree; - // Includes disabled outputs struct wl_list all_outputs; // sway_output::link |