rootston: add per-seat views

This commit is contained in:
emersion 2017-11-17 12:45:07 +01:00
parent 10f3be7384
commit bb6d34e7a5
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
12 changed files with 161 additions and 123 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 == view) {
if (seat->focus != NULL && seat->focus->view == view) {
return true;
}
}