diff options
author | Drew DeVault <[email protected]> | 2018-08-19 10:29:29 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2018-08-19 10:29:29 -0400 |
commit | 9f913614cad6d157bbf33b012093dda6f3e7665e (patch) | |
tree | fd63244ea01baecc425fb8f3b159975beb5a31e5 /include/sway/debug.h | |
parent | 2c91afbb34f649fcd4de690be5bedba4d989a7f0 (diff) | |
parent | f9563d88f30fd70c5999520fa7f4b3d0dffd1a4c (diff) |
Merge pull request #2478 from RyanDwyer/standardise-debug
Standardise debug variables
Diffstat (limited to 'include/sway/debug.h')
-rw-r--r-- | include/sway/debug.h | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/include/sway/debug.h b/include/sway/debug.h index 38d4eccd..bf3a5f6d 100644 --- a/include/sway/debug.h +++ b/include/sway/debug.h @@ -1,15 +1,22 @@ #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 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; +}; -// 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 |