diff options
Diffstat (limited to 'include/sway/debug.h')
-rw-r--r-- | include/sway/debug.h | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/include/sway/debug.h b/include/sway/debug.h index 38d4eccd..5dcd9e00 100644 --- a/include/sway/debug.h +++ b/include/sway/debug.h @@ -1,15 +1,18 @@ #ifndef SWAY_DEBUG_H #define SWAY_DEBUG_H +#include <stdbool.h> -// Tree -extern bool enable_debug_tree; -void update_debug_tree(); +struct sway_debug { + bool highlight_damage; // Highlight regions of the screen being damaged + bool noatomic; // Ignore atomic layout updates + bool nodamage; // Render the full output on each frame + 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 +}; -// Damage -extern const char *damage_debug; +extern struct sway_debug debug; -// Transactions -extern int txn_timeout_ms; -extern bool txn_debug; +void update_debug_tree(); #endif |