Mijalko
Mijalko

Reputation: 529

XLib: Get cursor image

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.

Upvotes: 5

Views: 2328

Answers (1)

Andrey Sidorov
Andrey Sidorov

Reputation: 25456

Use GetCursorImage / SelectCursorInput + CursorNotify event from XFixes extension:

XFixesCursorImage *cursor = XFixesGetCursorImage(display);

Upvotes: 6

Related Questions