aboutsummaryrefslogtreecommitdiff
path: root/include/sway/debug.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sway/debug.h')
-rw-r--r--include/sway/debug.h23
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