Skip to content

Commit dc1b159

Browse files
committed
Use TOP layer instead of OVERLAY on Wayland
Overlay is reserved for lock screens and similar programs. Fixes #7
1 parent 498fd2f commit dc1b159

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/wayland/display.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1013,7 +1013,7 @@ wayland_display_setup(GMainLoop *main_loop, NkBindings *bindings)
10131013

10141014
wayland->bindings_seat = nk_bindings_seat_new ( bindings, XKB_CONTEXT_NO_FLAGS );
10151015

1016-
wayland->wlr_surface = zwlr_layer_shell_v1_get_layer_surface(wayland->layer_shell, wayland->surface, NULL, ZWLR_LAYER_SHELL_V1_LAYER_OVERLAY, "rofi");
1016+
wayland->wlr_surface = zwlr_layer_shell_v1_get_layer_surface(wayland->layer_shell, wayland->surface, NULL, ZWLR_LAYER_SHELL_V1_LAYER_TOP, "rofi");
10171017

10181018
// ANCHOR_LEFT is needed to get the full screen width
10191019
zwlr_layer_surface_v1_set_anchor( wayland->wlr_surface, ZWLR_LAYER_SURFACE_V1_ANCHOR_TOP | ZWLR_LAYER_SURFACE_V1_ANCHOR_LEFT );

0 commit comments

Comments
 (0)