diff options
Diffstat (limited to 'sway/main.c')
-rw-r--r-- | sway/main.c | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/sway/main.c b/sway/main.c index 54f48340..3ba4ba75 100644 --- a/sway/main.c +++ b/sway/main.c | |||
@@ -235,14 +235,20 @@ static void drop_permissions(bool keep_caps) { | |||
235 | } | 235 | } |
236 | 236 | ||
237 | void enable_debug_flag(const char *flag) { | 237 | void enable_debug_flag(const char *flag) { |
238 | if (strcmp(flag, "render-tree") == 0) { | 238 | if (strcmp(flag, "damage=highlight") == 0) { |
239 | enable_debug_tree = true; | 239 | debug.damage = DAMAGE_HIGHLIGHT; |
240 | } else if (strncmp(flag, "damage=", 7) == 0) { | 240 | } else if (strcmp(flag, "damage=rerender") == 0) { |
241 | damage_debug = &flag[7]; | 241 | debug.damage = DAMAGE_RERENDER; |
242 | } else if (strcmp(flag, "txn-debug") == 0) { | 242 | } else if (strcmp(flag, "noatomic") == 0) { |
243 | txn_debug = true; | 243 | debug.noatomic = true; |
244 | } else if (strcmp(flag, "render-tree") == 0) { | ||
245 | debug.render_tree = true; | ||
246 | } else if (strcmp(flag, "txn-wait") == 0) { | ||
247 | debug.txn_wait = true; | ||
248 | } else if (strcmp(flag, "txn-timings") == 0) { | ||
249 | debug.txn_timings = true; | ||
244 | } else if (strncmp(flag, "txn-timeout=", 12) == 0) { | 250 | } else if (strncmp(flag, "txn-timeout=", 12) == 0) { |
245 | txn_timeout_ms = atoi(&flag[12]); | 251 | server.txn_timeout_ms = atoi(&flag[12]); |
246 | } | 252 | } |
247 | } | 253 | } |
248 | 254 | ||