mirror of
https://github.com/swaywm/sway.git
synced 2024-11-11 13:04:11 +01:00
Error out on unknown debug flag
Otehrwise it's pretty easy to misremember a flag and think damage=rerender is enabled when it's not.
This commit is contained in:
parent
da0ad4c39e
commit
c41c24d684
@ -211,6 +211,8 @@ void enable_debug_flag(const char *flag) {
|
||||
debug.txn_timings = true;
|
||||
} else if (strncmp(flag, "txn-timeout=", 12) == 0) {
|
||||
server.txn_timeout_ms = atoi(&flag[12]);
|
||||
} else {
|
||||
sway_log(SWAY_ERROR, "Unknown debug flag: %s", flag);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user