Fix focus getting stuck on layers
This commit is contained in:
parent
96484a75f8
commit
dd46523b3c
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue