mirror of
https://github.com/swaywm/sway.git
synced 2024-11-22 16:01:27 +00:00
remove damage debug options
Now that we use wlr_scene, wlroots handles these. If available use the wlroots debug options instead.
This commit is contained in:
parent
bab6b79af2
commit
7c635b61fe
|
@ -156,13 +156,6 @@ struct sway_debug {
|
||||||
bool noatomic; // Ignore atomic layout updates
|
bool noatomic; // Ignore atomic layout updates
|
||||||
bool txn_timings; // Log verbose messages about transactions
|
bool txn_timings; // Log verbose messages about transactions
|
||||||
bool txn_wait; // Always wait for the timeout before applying
|
bool txn_wait; // Always wait for the timeout before applying
|
||||||
bool noscanout; // Disable direct scan-out
|
|
||||||
|
|
||||||
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;
|
extern struct sway_debug debug;
|
||||||
|
|
|
@ -154,11 +154,7 @@ void restore_nofile_limit(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void enable_debug_flag(const char *flag) {
|
void enable_debug_flag(const char *flag) {
|
||||||
if (strcmp(flag, "damage=highlight") == 0) {
|
if (strcmp(flag, "noatomic") == 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;
|
debug.noatomic = true;
|
||||||
} else if (strcmp(flag, "txn-wait") == 0) {
|
} else if (strcmp(flag, "txn-wait") == 0) {
|
||||||
debug.txn_wait = true;
|
debug.txn_wait = true;
|
||||||
|
@ -166,8 +162,6 @@ void enable_debug_flag(const char *flag) {
|
||||||
debug.txn_timings = true;
|
debug.txn_timings = true;
|
||||||
} else if (strncmp(flag, "txn-timeout=", 12) == 0) {
|
} else if (strncmp(flag, "txn-timeout=", 12) == 0) {
|
||||||
server.txn_timeout_ms = atoi(&flag[12]);
|
server.txn_timeout_ms = atoi(&flag[12]);
|
||||||
} else if (strcmp(flag, "noscanout") == 0) {
|
|
||||||
debug.noscanout = true;
|
|
||||||
} else {
|
} else {
|
||||||
sway_log(SWAY_ERROR, "Unknown debug flag: %s", flag);
|
sway_log(SWAY_ERROR, "Unknown debug flag: %s", flag);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue