Remove debug tree

This feature has served its purpose. It's better to use IPC now.
This commit is contained in:
Ryan Dwyer 2019-03-18 20:52:56 +10:00 committed by Brian Ashworth
parent 38bd60c4b3
commit e9a476244d
9 changed files with 14 additions and 206 deletions

View file

@ -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

View file

@ -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);

View file

@ -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