summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/sway/debug.h19
-rw-r--r--include/sway/server.h3
2 files changed, 12 insertions, 10 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 @@
1#ifndef SWAY_DEBUG_H 1#ifndef SWAY_DEBUG_H
2#define SWAY_DEBUG_H 2#define SWAY_DEBUG_H
3#include <stdbool.h>
3 4
4// Tree 5struct sway_debug {
5extern bool enable_debug_tree; 6 bool highlight_damage; // Highlight regions of the screen being damaged
6void update_debug_tree(); 7 bool noatomic; // Ignore atomic layout updates
8 bool nodamage; // Render the full output on each frame
9 bool render_tree; // Render the tree overlay
10 bool txn_timings; // Log verbose messages about transactions
11 bool txn_wait; // Always wait for the timeout before applying
12};
7 13
8// Damage 14extern struct sway_debug debug;
9extern const char *damage_debug;
10 15
11// Transactions 16void update_debug_tree();
12extern int txn_timeout_ms;
13extern bool txn_debug;
14 17
15#endif 18#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 {
54 struct wl_listener server_decoration; 54 struct wl_listener server_decoration;
55 struct wl_list decorations; // sway_server_decoration::link 55 struct wl_list decorations; // sway_server_decoration::link
56 56
57 bool debug_txn_timings; 57 size_t txn_timeout_ms;
58
59 list_t *transactions; 58 list_t *transactions;
60 list_t *dirty_containers; 59 list_t *dirty_containers;
61}; 60};