aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/sway/debug.h23
-rw-r--r--include/sway/server.h3
2 files changed, 16 insertions, 10 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
diff --git a/include/sway/server.h b/include/sway/server.h
index b93584b6..1e20f2c8 100644
--- a/include/sway/server.h
+++ b/include/sway/server.h
@@ -54,8 +54,7 @@ struct sway_server {
struct wl_listener server_decoration;
struct wl_list decorations; // sway_server_decoration::link
- bool debug_txn_timings;
-
+ size_t txn_timeout_ms;
list_t *transactions;
list_t *dirty_containers;
};