aboutsummaryrefslogtreecommitdiff
path: root/sway/main.c
diff options
context:
space:
mode:
authorRyan Dwyer <ryandwyer1@gmail.com>2018-08-19 11:29:59 +1000
committerRyan Dwyer <ryandwyer1@gmail.com>2018-08-19 16:17:24 +1000
commitf9563d88f30fd70c5999520fa7f4b3d0dffd1a4c (patch)
treee042ef90214040470a7a3e6371a23d97032786c6 /sway/main.c
parent8d1dd038233cf946b36813c4c8508c17f4cda0fc (diff)
Use enum for damage debug options
Diffstat (limited to 'sway/main.c')
-rw-r--r--sway/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sway/main.c b/sway/main.c
index 7a1afd4c..3ba4ba75 100644
--- a/sway/main.c
+++ b/sway/main.c
@@ -235,12 +235,12 @@ static void drop_permissions(bool keep_caps) {
}
void enable_debug_flag(const char *flag) {
- if (strcmp(flag, "highlight-damage") == 0) {
- debug.highlight_damage = true;
+ if (strcmp(flag, "damage=highlight") == 0) {
+ debug.damage = DAMAGE_HIGHLIGHT;
+ } else if (strcmp(flag, "damage=rerender") == 0) {
+ debug.damage = DAMAGE_RERENDER;
} else if (strcmp(flag, "noatomic") == 0) {
debug.noatomic = true;
- } else if (strcmp(flag, "nodamage") == 0) {
- debug.nodamage = true;
} else if (strcmp(flag, "render-tree") == 0) {
debug.render_tree = true;
} else if (strcmp(flag, "txn-wait") == 0) {