Remove roots_seat_{add,remove}_view

This commit is contained in:
emersion 2017-11-19 18:15:11 +01:00
parent 76e8e1a6ad
commit a8b31da52c
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
5 changed files with 78 additions and 75 deletions

View file

@ -116,7 +116,7 @@ bool input_view_has_focus(struct roots_input *input, struct roots_view *view) {
}
struct roots_seat *seat;
wl_list_for_each(seat, &input->seats, link) {
if (seat->focus != NULL && seat->focus->view == view) {
if (view == roots_seat_get_focused_view(seat)) {
return true;
}
}