Fix focus getting stuck on layers

This commit is contained in:
buffet 2020-01-18 20:01:23 +00:00
parent 96484a75f8
commit dd46523b3c

View file

@ -65,10 +65,10 @@ void
seat_focus_layer(struct kiwmi_seat *seat, struct kiwmi_layer *layer) seat_focus_layer(struct kiwmi_seat *seat, struct kiwmi_layer *layer)
{ {
if (!layer) { if (!layer) {
if (seat->focused_layer) { seat->focused_layer = NULL;
seat_focus_surface(seat, NULL);
seat_focus_surface( if (seat->focused_view) {
seat, seat->focused_layer->layer_surface->surface); seat_focus_surface(seat, seat->focused_view->wlr_surface);
} }
return; return;