diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-08-19 11:29:59 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-08-19 16:17:24 +1000 |
commit | f9563d88f30fd70c5999520fa7f4b3d0dffd1a4c (patch) | |
tree | e042ef90214040470a7a3e6371a23d97032786c6 /include | |
parent | Standardise debug variables (diff) | |
download | sway-f9563d88f30fd70c5999520fa7f4b3d0dffd1a4c.tar.gz sway-f9563d88f30fd70c5999520fa7f4b3d0dffd1a4c.tar.zst sway-f9563d88f30fd70c5999520fa7f4b3d0dffd1a4c.zip |
Use enum for damage debug options
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/debug.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/sway/debug.h b/include/sway/debug.h index 5dcd9e00..bf3a5f6d 100644 --- a/include/sway/debug.h +++ b/include/sway/debug.h | |||
@@ -3,12 +3,16 @@ | |||
3 | #include <stdbool.h> | 3 | #include <stdbool.h> |
4 | 4 | ||
5 | struct sway_debug { | 5 | struct sway_debug { |
6 | bool highlight_damage; // Highlight regions of the screen being damaged | ||
7 | bool noatomic; // Ignore atomic layout updates | 6 | bool noatomic; // Ignore atomic layout updates |
8 | bool nodamage; // Render the full output on each frame | ||
9 | bool render_tree; // Render the tree overlay | 7 | bool render_tree; // Render the tree overlay |
10 | bool txn_timings; // Log verbose messages about transactions | 8 | bool txn_timings; // Log verbose messages about transactions |
11 | bool txn_wait; // Always wait for the timeout before applying | 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; | ||
12 | }; | 16 | }; |
13 | 17 | ||
14 | extern struct sway_debug debug; | 18 | extern struct sway_debug debug; |