From: Johan Malm Date: Sat, 9 Mar 2024 10:33:34 +0000 (+0000) Subject: seat: remove unecessary top/overlay check in seat_set_focus_layer() X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=045dd8a378cae5ace00fbb59bf7b5b40e538c7b7;p=proto%2Flabwc.git seat: remove unecessary top/overlay check in seat_set_focus_layer() Such checks should be made prior to calling the function (which they are). --- diff --git a/src/seat.c b/src/seat.c index 53861edc..8da507e7 100644 --- a/src/seat.c +++ b/src/seat.c @@ -672,9 +672,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