[client] wayland: implement support for other cursors

This commit is contained in:
Quantum
2021-07-29 17:34:17 -04:00
committed by Geoffrey McRae
parent da28db2ca4
commit 11a5864969
4 changed files with 86 additions and 15 deletions

View File

@@ -52,7 +52,7 @@ static void pointerEnterHandler(void * data, struct wl_pointer * pointer,
wlWm.pointerInSurface = true;
app_handleEnterEvent(true);
wl_pointer_set_cursor(pointer, serial, wlWm.showPointer ? wlWm.cursor : NULL, 0, 0);
wl_pointer_set_cursor(pointer, serial, wlWm.cursor, wlWm.cursorHotX, wlWm.cursorHotY);
wlWm.pointerEnterSerial = serial;
wlWm.cursorX = wl_fixed_to_double(sxW);