Reputation: 2061
I'm newbie in gtk. I need to track mouse cursor position over window. I've found "motion-notify-event" that looked promising but it appeared to be generated only when mouse button is pressed. What to do to be notified about each mouse cursor movement regardless of buttons state?
Upvotes: 1
Views: 184
Reputation: 14587
motion-notify-event signal emission requires two things:
The latter can be done with:
gtk_widget_add_events (my_widget, GDK_POINTER_MOTION_MASK);
Upvotes: 2