aboutsummaryrefslogtreecommitdiff
path: root/rootston/input.c
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2017-11-17 12:45:07 +0100
committeremersion <contact@emersion.fr>2017-11-17 12:45:07 +0100
commitbb6d34e7a5e270c6998f95f45c1e518d9c053714 (patch)
tree4c3a34eb809203e76c63ac90239f6d07312cc0f5 /rootston/input.c
parent10f3be73843250c400531873b4dd27dba44919fd (diff)
rootston: add per-seat views
Diffstat (limited to 'rootston/input.c')
-rw-r--r--rootston/input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rootston/input.c b/rootston/input.c
index 35a5af97..b2cd6472 100644
--- a/rootston/input.c
+++ b/rootston/input.c
@@ -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;
}
}