aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/sway/server.h1
-rw-r--r--sway/desktop/output.c2
-rw-r--r--sway/main.c2
3 files changed, 4 insertions, 1 deletions
diff --git a/include/sway/server.h b/include/sway/server.h
index f3522a49..88dda097 100644
--- a/include/sway/server.h
+++ b/include/sway/server.h
@@ -119,6 +119,7 @@ struct sway_debug {
119 bool noatomic; // Ignore atomic layout updates 119 bool noatomic; // Ignore atomic layout updates
120 bool txn_timings; // Log verbose messages about transactions 120 bool txn_timings; // Log verbose messages about transactions
121 bool txn_wait; // Always wait for the timeout before applying 121 bool txn_wait; // Always wait for the timeout before applying
122 bool noscanout; // Disable direct scan-out
122 123
123 enum { 124 enum {
124 DAMAGE_DEFAULT, // Default behaviour 125 DAMAGE_DEFAULT, // Default behaviour
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 =
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 }