Fix focus getting stuck on layers
This commit is contained in:
parent
e4e88df667
commit
f1707e0d34
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…
Add table
Reference in a new issue