From 75b2d0b105ac21f362d47ccdc94a4cb25994e2f6 Mon Sep 17 00:00:00 2001 From: Daniel De Graaf Date: Sat, 21 May 2022 23:54:22 -0400 Subject: [PATCH] ext-session-lock: disable direct scan-out when locked --- sway/desktop/output.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sway/desktop/output.c b/sway/desktop/output.c index 18367a1c1..5b7ad4eee 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c @@ -453,6 +453,10 @@ static bool scan_out_fullscreen_view(struct sway_output *output, return false; } + if (server.session_lock.locked) { + return false; + } + if (!wl_list_empty(&view->saved_buffers)) { return false; }