Add cursor image
This commit is contained in:
parent
7549d2d631
commit
c95a50b55e
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue