Question

Is there a way to retrieve current cursor bitmap using Xlib? I have checked XCursor man but I don't see any method that can do that.

Was it helpful?

Solution

Use GetCursorImage / SelectCursorInput + CursorNotify event from XFixes extension:

XFixesCursorImage *cursor = XFixesGetCursorImage(display);
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top