From 957dd43af2ee88578dd0fef63fe706ba61359355 Mon Sep 17 00:00:00 2001 From: Consus Date: Thu, 27 Apr 2023 18:55:57 +0300 Subject: [PATCH] output: Make the session lock layer the topmost Make sure that only the session lock layer is visible to a user. Fixes the issue with mako notifications being rendered above the swaylock window. --- src/output.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/output.c b/src/output.c index f5af8ab4..440e56de 100644 --- a/src/output.c +++ b/src/output.c @@ -191,6 +191,7 @@ new_output_notify(struct wl_listener *listener, void *data) /* * Set the z-positions to achieve the following order (from top to * bottom): + * - session lock layer * - layer-shell popups * - overlay layer * - top layer @@ -203,6 +204,7 @@ new_output_notify(struct wl_listener *listener, void *data) wlr_scene_node_raise_to_top(&output->layer_tree[2]->node); wlr_scene_node_raise_to_top(&output->layer_tree[3]->node); wlr_scene_node_raise_to_top(&output->layer_popup_tree->node); + wlr_scene_node_raise_to_top(&output->session_lock_tree->node); if (rc.adaptive_sync) { wlr_log(WLR_INFO, "enable adaptive sync on %s", wlr_output->name);