aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2018-08-19 11:29:59 +1000
committerFurkan Sahin <furkan-dev@proton.me>2018-08-19 11:29:59 +1000
commit7811e4a8850a95d68e86d3490a424d106b04dfdd (patch)
treee042ef90214040470a7a3e6371a23d97032786c6 /include
parenta7be93042a5f66d1c82e4dbfa0d71226dc5ae116 (diff)
Use enum for damage debug options
Diffstat (limited to 'include')
-rw-r--r--include/sway/debug.h8
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 @@
#include <stdbool.h>
struct sway_debug {
- bool highlight_damage; // Highlight regions of the screen being damaged
bool noatomic; // Ignore atomic layout updates
- bool nodamage; // Render the full output on each frame
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;
};
extern struct sway_debug debug;