master cursor_fix.patch
ohmu  ·  2026-07-27
 1--- x11-screen.c
 2+++ x11-screen.c
 3@@ -1433,8 +1433,15 @@
 4 	int i;
 5 	uchar src[2*16], mask[2*16];
 6 
 7-	if(c == nil)
 8-		c = &bigarrow;
 9+	if(c == nil) {
10+        if(_x.cursor != 0) {
11+            XFreeCursor(_x.display, _x.cursor);
12+            _x.cursor = 0;
13+        }
14+        XUndefineCursor(_x.display, w->drawable);
15+        XFlush(_x.display);
16+        return;
17+    }
18 
19 	for(i=0; i<2*16; i++){
20 		src[i] = revbyte(c->set[i]);