]> git.mdlowis.com Git - proto/labwc.git/commitdiff
src/layers.c: move popups from the background layer to the top layer
authorConsolatis <35009135+Consolatis@users.noreply.github.com>
Thu, 7 Dec 2023 10:05:49 +0000 (11:05 +0100)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Thu, 7 Dec 2023 10:11:47 +0000 (11:11 +0100)
Previously we would only do that for the bottom layer.

Fixes #1293

Reported-by: @spl237
src/layers.c

index 8b58f1f104d5218fc36753882872fba9c76f3082..abf9c711f423ffdb14faaa4a4aa1a3e4f82d9e41 100644 (file)
@@ -363,7 +363,7 @@ handle_new_popup(struct wl_listener *listener, void *data)
        popup->output_toplevel_sx_box = output_toplevel_sx_box;
 
        if (surface->layer_surface->current.layer
-                       == ZWLR_LAYER_SHELL_V1_LAYER_BOTTOM) {
+                       <= ZWLR_LAYER_SHELL_V1_LAYER_BOTTOM) {
                move_popup_to_top_layer(toplevel, popup);
        }
 }