debug: log cursor change on view hover

This commit is contained in:
lkn 2026-06-23 23:52:17 +02:00
parent 2c3f244983
commit 70a456b72d
1 changed files with 2 additions and 0 deletions

View File

@ -157,6 +157,8 @@ handle_pointer_motion(struct wl_listener *listener, void *data)
WMNativeCursor c = mtarget ? mtarget->attribs.cursor : 0;
if (!c && mtarget) c = mtarget->cursor;
const char *cname = c ? (const char *)(uintptr_t)c : "left_ptr";
wwarning("wl_pointer: hover view=%p c=%p cname=%s",
(void*)mtarget, (void*)(uintptr_t)c, cname);
W_SetCursorImageFn(cname);
}
}