aboutsummaryrefslogtreecommitdiffstats
path: root/sway/main.c
diff options
context:
space:
mode:
authorLibravatar Simon Ser <contact@emersion.fr>2021-09-20 11:58:49 +0200
committerLibravatar Kenny Levinsen <kl@kl.wtf>2021-09-20 14:22:35 +0200
commit82d5f12914d198b403bf14b19219581de3c6199f (patch)
tree6de55bbaf7922211584d96b7d2d0f9df482e3c86 /sway/main.c
parentswaybar: properly draw blocks with transparent black border (diff)
downloadsway-82d5f12914d198b403bf14b19219581de3c6199f.tar.gz
sway-82d5f12914d198b403bf14b19219581de3c6199f.tar.zst
sway-82d5f12914d198b403bf14b19219581de3c6199f.zip
Add -Dnoscanout debug option
This can help debugging direct scan-out issues, such as [1]. [1]: https://github.com/swaywm/wlroots/issues/3185
Diffstat (limited to 'sway/main.c')
-rw-r--r--sway/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/main.c b/sway/main.c
index 0611e80b..e960c4e2 100644
--- a/sway/main.c
+++ b/sway/main.c
@@ -182,6 +182,8 @@ void enable_debug_flag(const char *flag) {
182 debug.txn_timings = true; 182 debug.txn_timings = true;
183 } else if (strncmp(flag, "txn-timeout=", 12) == 0) { 183 } else if (strncmp(flag, "txn-timeout=", 12) == 0) {
184 server.txn_timeout_ms = atoi(&flag[12]); 184 server.txn_timeout_ms = atoi(&flag[12]);
185 } else if (strcmp(flag, "noscanout") == 0) {
186 debug.noscanout = true;
185 } else { 187 } else {
186 sway_log(SWAY_ERROR, "Unknown debug flag: %s", flag); 188 sway_log(SWAY_ERROR, "Unknown debug flag: %s", flag);
187 } 189 }