From 75b2d0b105ac21f362d47ccdc94a4cb25994e2f6 Mon Sep 17 00:00:00 2001 From: Daniel De Graaf Date: Sat, 21 May 2022 23:54:22 -0400 Subject: ext-session-lock: disable direct scan-out when locked --- sway/desktop/output.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sway/desktop/output.c') diff --git a/sway/desktop/output.c b/sway/desktop/output.c index 18367a1c..5b7ad4ee 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; } -- cgit v1.2.3