Make the close command use roots_seat_get_focus, rename a few symbols

This commit is contained in:
emersion 2017-11-19 19:14:31 +01:00
parent a8b31da52c
commit bf41e7a794
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
5 changed files with 17 additions and 18 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 (view == roots_seat_get_focused_view(seat)) {
if (view == roots_seat_get_focus(seat)) {
return true;
}
}