diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-08-19 10:29:29 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-19 10:29:29 -0400 |
commit | 9f913614cad6d157bbf33b012093dda6f3e7665e (patch) | |
tree | fd63244ea01baecc425fb8f3b159975beb5a31e5 /include | |
parent | Merge pull request #2487 from RyanDwyer/workspace-floating-list (diff) | |
parent | Use enum for damage debug options (diff) | |
download | sway-9f913614cad6d157bbf33b012093dda6f3e7665e.tar.gz sway-9f913614cad6d157bbf33b012093dda6f3e7665e.tar.zst sway-9f913614cad6d157bbf33b012093dda6f3e7665e.zip |
Merge pull request #2478 from RyanDwyer/standardise-debug
Standardise debug variables
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/debug.h | 23 | ||||
-rw-r--r-- | include/sway/server.h | 3 |
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 @@ | |||
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 | 5 | struct sway_debug { |
5 | extern bool enable_debug_tree; | 6 | bool noatomic; // Ignore atomic layout updates |
6 | void update_debug_tree(); | 7 | bool render_tree; // Render the tree overlay |
8 | bool txn_timings; // Log verbose messages about transactions | ||
9 | bool txn_wait; // Always wait for the timeout before applying | ||
10 | |||
11 | enum { | ||
12 | DAMAGE_DEFAULT, // Default behaviour | ||
13 | DAMAGE_HIGHLIGHT, // Highlight regions of the screen being damaged | ||
14 | DAMAGE_RERENDER, // Render the full output when any damage occurs | ||
15 | } damage; | ||
16 | }; | ||
7 | 17 | ||
8 | // Damage | 18 | extern struct sway_debug debug; |
9 | extern const char *damage_debug; | ||
10 | 19 | ||
11 | // Transactions | 20 | void update_debug_tree(); |
12 | extern int txn_timeout_ms; | ||
13 | extern bool txn_debug; | ||
14 | 21 | ||
15 | #endif | 22 | #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 | }; |