mirror of
https://github.com/swaywm/sway.git
synced 2025-11-07 13:29:56 -05:00
Use enum for damage debug options
This commit is contained in:
parent
8d1dd03823
commit
f9563d88f3
4 changed files with 14 additions and 12 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue