Re: Watch for mouse

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Usually, that sort of thing is done by connecting to the enter-notify-event and leave-notify-event signals.  You might have to add those events to the to the widget event mask with something like:

gtk_widget_add_events (<widget>, GDK_ENTER_NOTIFY_MASK | GDK_LEAVE_NOTIFY_MASK );

But I have no idea if this will work on Wayland.

On 10/21/16 10:06, Konstantin P. wrote:
How I can watch for mouse inside my program's windows (it includes all popups and menus)?

I need to do some action when mouse leaves program's window and all subwindows. And it must work on Wayland


_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-list

_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux