diff options
author | Daniel De Graaf <code@danieldg.net> | 2022-05-21 23:54:22 -0400 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2022-05-23 08:15:51 +0200 |
commit | 75b2d0b105ac21f362d47ccdc94a4cb25994e2f6 (patch) | |
tree | d7cde22198c77581545304d587501253a8ed3313 /sway/desktop/output.c | |
parent | a3a82efbf6b5b3af840c70038b1b599ba29003ac (diff) |
ext-session-lock: disable direct scan-out when locked
Diffstat (limited to 'sway/desktop/output.c')
-rw-r--r-- | sway/desktop/output.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; } |