Skip to content

Commit

Permalink
remove damage debug options
Browse files Browse the repository at this point in the history
Now that we use wlr_scene, wlroots handles these. If available use
the wlroots debug options instead.
  • Loading branch information
Nefsen402 authored and vyivel committed Jan 18, 2024
1 parent bab6b79 commit 7c635b6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
7 changes: 0 additions & 7 deletions include/sway/server.h
Original file line number Diff line number Diff line change
Expand Up @@ -156,13 +156,6 @@ struct sway_debug {
bool noatomic; // Ignore atomic layout updates
bool txn_timings; // Log verbose messages about transactions
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;
Expand Down
8 changes: 1 addition & 7 deletions sway/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,20 +154,14 @@ void restore_nofile_limit(void) {
}

void enable_debug_flag(const char *flag) {
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) {
if (strcmp(flag, "noatomic") == 0) {
debug.noatomic = true;
} else if (strcmp(flag, "txn-wait") == 0) {
debug.txn_wait = true;
} else if (strcmp(flag, "txn-timings") == 0) {
debug.txn_timings = true;
} else if (strncmp(flag, "txn-timeout=", 12) == 0) {
server.txn_timeout_ms = atoi(&flag[12]);
} else if (strcmp(flag, "noscanout") == 0) {
debug.noscanout = true;
} else {
sway_log(SWAY_ERROR, "Unknown debug flag: %s", flag);
}
Expand Down

0 comments on commit 7c635b6

Please sign in to comment.