src/layers.c: move popups from the background layer to the top layer

Previously we would only do that for the bottom layer.

Fixes #1293

Reported-by: @spl237
This commit is contained in:
Consolatis 2023-12-07 11:05:49 +01:00
parent b34d074063
commit 02aa000b0d

View 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);
}
}