aboutsummaryrefslogtreecommitdiff
path: root/rootston/cursor.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-09-28 09:11:16 -0400
committerDrew DeVault <sir@cmpwn.com>2017-09-28 09:11:16 -0400
commit220a6e9bf637471f3f5e392d3c3fb76ae9b7e138 (patch)
treedfd4c5b7186f9cb260046f58c7f02848822a757a /rootston/cursor.c
parent906a816abf812445ec9e514e6115872632fb3ee1 (diff)
Add xwayland activate and fix EGL bug
Diffstat (limited to 'rootston/cursor.c')
-rw-r--r--rootston/cursor.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/rootston/cursor.c b/rootston/cursor.c
index 226fe412..89f5874e 100644
--- a/rootston/cursor.c
+++ b/rootston/cursor.c
@@ -100,7 +100,9 @@ static void do_cursor_button_press(struct roots_input *input,
input->input_events_idx = (i + 1)
% (sizeof(input->input_events) / sizeof(input->input_events[0]));
set_view_focus(input, desktop, view);
- wlr_seat_keyboard_enter(input->wl_seat, view->wlr_surface);
+ if (view) {
+ wlr_seat_keyboard_enter(input->wl_seat, view->wlr_surface);
+ }
break;
}
}