seat: remove unecessary top/overlay check in seat_set_focus_layer()

Such checks should be made prior to calling the function (which they
are).
This commit is contained in:
Johan Malm 2024-03-09 10:33:34 +00:00 committed by Johan Malm
parent 36058a63e2
commit 045dd8a378

View file

@ -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