From 0f72a55bf7e51172c9119006435b9128919e52a1 Mon Sep 17 00:00:00 2001 From: Charlotte Meyer Date: Mon, 11 Mar 2019 10:34:46 +0100 Subject: [PATCH] Add cursor image --- kiwmi/input/cursor.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kiwmi/input/cursor.c b/kiwmi/input/cursor.c index 3cff985..515c838 100644 --- a/kiwmi/input/cursor.c +++ b/kiwmi/input/cursor.c @@ -59,6 +59,9 @@ cursor_create(struct wlr_output_layout *output_layout) cursor->xcursor_manager = wlr_xcursor_manager_create(NULL, 24); wlr_xcursor_manager_load(cursor->xcursor_manager, 1); + wlr_xcursor_manager_set_cursor_image( + cursor->xcursor_manager, "left_ptr", cursor->cursor); + cursor->cursor_motion.notify = cursor_motion_notify; wl_signal_add(&cursor->cursor->events.motion, &cursor->cursor_motion);