aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Alexander Orzechowski <orzechowski.alexander@gmail.com>2022-04-30 17:09:44 -0400
committerLibravatar Kirill Primak <vyivel@eclair.cafe>2024-01-18 18:36:54 +0300
commit7c635b61fe2efd122d131951c26f0c89d25f56cc (patch)
treecc5d48bb1b029a121148cf83c72026d63eeedd84
parentFix SIGSEGV on surface destroy (diff)
downloadsway-7c635b61fe2efd122d131951c26f0c89d25f56cc.tar.gz
sway-7c635b61fe2efd122d131951c26f0c89d25f56cc.tar.zst
sway-7c635b61fe2efd122d131951c26f0c89d25f56cc.zip
remove damage debug options
Now that we use wlr_scene, wlroots handles these. If available use the wlroots debug options instead.
-rw-r--r--include/sway/server.h7
-rw-r--r--sway/main.c8
2 files changed, 1 insertions, 14 deletions
diff --git a/include/sway/server.h b/include/sway/server.h
index 33ffbf09..5df8a8e1 100644
--- a/include/sway/server.h
+++ b/include/sway/server.h
@@ -156,13 +156,6 @@ struct sway_debug {
156 bool noatomic; // Ignore atomic layout updates 156 bool noatomic; // Ignore atomic layout updates
157 bool txn_timings; // Log verbose messages about transactions 157 bool txn_timings; // Log verbose messages about transactions
158 bool txn_wait; // Always wait for the timeout before applying 158 bool txn_wait; // Always wait for the timeout before applying
159 bool noscanout; // Disable direct scan-out
160
161 enum {
162 DAMAGE_DEFAULT, // Default behaviour
163 DAMAGE_HIGHLIGHT, // Highlight regions of the screen being damaged
164 DAMAGE_RERENDER, // Render the full output when any damage occurs
165 } damage;
166}; 159};
167 160
168extern struct sway_debug debug; 161extern struct sway_debug debug;
diff --git a/sway/main.c b/sway/main.c
index 65c85d31..21f19fc4 100644
--- a/sway/main.c
+++ b/sway/main.c
@@ -154,11 +154,7 @@ void restore_nofile_limit(void) {
154} 154}
155 155
156void enable_debug_flag(const char *flag) { 156void enable_debug_flag(const char *flag) {
157 if (strcmp(flag, "damage=highlight") == 0) { 157 if (strcmp(flag, "noatomic") == 0) {
158 debug.damage = DAMAGE_HIGHLIGHT;
159 } else if (strcmp(flag, "damage=rerender") == 0) {
160 debug.damage = DAMAGE_RERENDER;
161 } else if (strcmp(flag, "noatomic") == 0) {
162 debug.noatomic = true; 158 debug.noatomic = true;
163 } else if (strcmp(flag, "txn-wait") == 0) { 159 } else if (strcmp(flag, "txn-wait") == 0) {
164 debug.txn_wait = true; 160 debug.txn_wait = true;
@@ -166,8 +162,6 @@ void enable_debug_flag(const char *flag) {
166 debug.txn_timings = true; 162 debug.txn_timings = true;
167 } else if (strncmp(flag, "txn-timeout=", 12) == 0) { 163 } else if (strncmp(flag, "txn-timeout=", 12) == 0) {
168 server.txn_timeout_ms = atoi(&flag[12]); 164 server.txn_timeout_ms = atoi(&flag[12]);
169 } else if (strcmp(flag, "noscanout") == 0) {
170 debug.noscanout = true;
171 } else { 165 } else {
172 sway_log(SWAY_ERROR, "Unknown debug flag: %s", flag); 166 sway_log(SWAY_ERROR, "Unknown debug flag: %s", flag);
173 } 167 }