diff options
author | Simon Ser <contact@emersion.fr> | 2021-09-20 11:58:49 +0200 |
---|---|---|
committer | Kenny Levinsen <kl@kl.wtf> | 2021-09-20 14:22:35 +0200 |
commit | 82d5f12914d198b403bf14b19219581de3c6199f (patch) | |
tree | 6de55bbaf7922211584d96b7d2d0f9df482e3c86 /sway/desktop/output.c | |
parent | swaybar: properly draw blocks with transparent black border (diff) | |
download | sway-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/desktop/output.c')
-rw-r--r-- | sway/desktop/output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c index a980e958..8cdd47f5 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c | |||
@@ -507,7 +507,7 @@ static int output_repaint_timer_handler(void *data) { | |||
507 | fullscreen_con = workspace->current.fullscreen; | 507 | fullscreen_con = workspace->current.fullscreen; |
508 | } | 508 | } |
509 | 509 | ||
510 | if (fullscreen_con && fullscreen_con->view) { | 510 | if (fullscreen_con && fullscreen_con->view && !debug.noscanout) { |
511 | // Try to scan-out the fullscreen view | 511 | // Try to scan-out the fullscreen view |
512 | static bool last_scanned_out = false; | 512 | static bool last_scanned_out = false; |
513 | bool scanned_out = | 513 | bool scanned_out = |