]> git.mdlowis.com Git - proto/labwc.git/commitdiff
output: Make the session lock layer the topmost
authorConsus <consus@ftml.net>
Thu, 27 Apr 2023 15:55:57 +0000 (18:55 +0300)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Thu, 27 Apr 2023 16:17:44 +0000 (18:17 +0200)
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

index f5af8ab4e173bd2dc4cb54f308b1320ff9a5104d..440e56de5a6c71bb00ae78302a8e84ec612abe55 100644 (file)
@@ -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);