From 2c80044d807a579d7a0ea8cd107c2ef5a0532c5a Mon Sep 17 00:00:00 2001 From: Johan Malm Date: Sat, 9 Mar 2024 10:33:34 +0000 Subject: [PATCH] seat: remove unecessary top/overlay check in seat_set_focus_layer() Such checks should be made prior to calling the function (which they are). --- src/seat.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/seat.c b/src/seat.c index 1d4a20e7..0e1b6f24 100644 --- a/src/seat.c +++ b/src/seat.c @@ -665,9 +665,7 @@ seat_set_focus_layer(struct seat *seat, struct wlr_layer_surface_v1 *layer) return; } seat_focus(seat, layer->surface, /*is_lock_surface*/ false); - if (layer->current.layer >= ZWLR_LAYER_SHELL_V1_LAYER_TOP) { - seat->focused_layer = layer; - } + seat->focused_layer = layer; } static void