aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
Diffstat (limited to 'sway')
-rw-r--r--sway/desktop/output.c2
-rw-r--r--sway/main.c2
2 files changed, 3 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) {
fullscreen_con = workspace->current.fullscreen;
}
- if (fullscreen_con && fullscreen_con->view) {
+ if (fullscreen_con && fullscreen_con->view && !debug.noscanout) {
// Try to scan-out the fullscreen view
static bool last_scanned_out = false;
bool scanned_out =
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) {
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);
}