0

There is a function gdk_cursor_get_cursor_type(GdkCursor* cursor) in a library GDK. How to get this current cursor type?

Getting a current mouse device is quite simple:

GdkSeat* seat = gdk_display_get_default_seat(gdk_display_get_default());
GdkDevice* pointer = gdk_seat_get_pointer(seat);

But pointer is of type GdkDevice, not GdkCursor. Is is possible to cast somehow from GdkDevice into GdkCursor?

Ragdoll Car
  • 141
  • 6

0 Answers0