Handle layer surfaces below shell surfaces

This commit is contained in:
Drew DeVault 2018-04-02 17:00:09 -04:00
parent a94f4d0edc
commit 37036df822
4 changed files with 23 additions and 10 deletions

View file

@ -271,6 +271,12 @@ static void roots_cursor_press_button(struct roots_cursor *cursor,
break;
case WLR_BUTTON_PRESSED:
roots_seat_set_focus(seat, view);
if (surface && !view) {
struct wlr_layer_surface *layer = surface->role_data;
if (layer->current.keyboard_interactive) {
roots_seat_set_focus_layer(seat, layer);
}
}
break;
}
}