Only notify of a keyboard if we have one.
@@ -319,9 +319,11 @@ void wc_focus_view(struct wc_view *view) {
}
struct wlr_keyboard *keyboard = wlr_seat_get_keyboard(seat);
+ if (keyboard != NULL) {
wlr_seat_keyboard_notify_enter(seat, surface, keyboard->keycodes,
keyboard->num_keycodes, &keyboard->modifiers);
}
+}
void wc_views_init(struct wc_server *server) {
wl_list_init(&server->views);
