shithub: drawterm

Download patch

ref: 94ba334d6dafc14c695e986afb33685e4e74d6eb
parent: af720a92c15c5754fc0f3df0d1d95ed7cdf61a02
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Fri Feb 4 11:15:26 EST 2022

wayland: always handle new pointer position on "enter" and set set the cursor image

--- a/gui-wl/wl-cb.c
+++ b/gui-wl/wl-cb.c
@@ -328,9 +328,8 @@
 
 	wl = data;
 	wl->pointerserial = serial;
-	if(wl->cursorsurface == nil)
-		return;
-	wl_pointer_set_cursor(wl->pointer, wl->pointerserial, wl->cursorsurface, -cursor.offset.x, -cursor.offset.y);
+	pointer_handle_motion(data, wl_pointer, wl->mouse.msec, surface_x, surface_y);
+	setcursor();
 }
 
 static void