Fix two-finger scrolling on wxGTK under Wayland
When running under Wayland and using two-finger scrolling, GTK seems to only emit "smooth" scrolling events. The code was already setup to handle GDK_SCROLL_SMOOTH events - we just needed to add GDK_SMOOTH_SCROLL_MASK to the event mast of the window in order to receive the events. Fixes #17734.
This commit is contained in:
@@ -364,6 +364,9 @@ GtkWidget* wxPizza::New(long windowStyle)
|
||||
gtk_widget_add_events(widget,
|
||||
GDK_EXPOSURE_MASK |
|
||||
GDK_SCROLL_MASK |
|
||||
#if GTK_CHECK_VERSION(3,4,0)
|
||||
GDK_SMOOTH_SCROLL_MASK |
|
||||
#endif
|
||||
GDK_POINTER_MOTION_MASK |
|
||||
GDK_POINTER_MOTION_HINT_MASK |
|
||||
GDK_BUTTON_MOTION_MASK |
|
||||
|
Reference in New Issue
Block a user