debug: log cursor change on view hover
This commit is contained in:
parent
2c3f244983
commit
70a456b72d
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue