mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-06 08:40:08 +00:00
layout: set GDK_SMOOTH_SCROLL_MASK
This is so smooth scroll events are send/handled by the parent GtkScrolledWindow if any.
This commit is contained in:
parent
7381a2788b
commit
76462df59f
@ -892,7 +892,8 @@ gtk_layout_realize (GtkWidget *widget)
|
||||
attributes.y = - gtk_adjustment_get_value (priv->vadjustment);
|
||||
attributes.width = MAX (priv->width, allocation.width);
|
||||
attributes.height = MAX (priv->height, allocation.height);
|
||||
attributes.event_mask = GDK_EXPOSURE_MASK | GDK_SCROLL_MASK |
|
||||
attributes.event_mask = GDK_EXPOSURE_MASK | GDK_SCROLL_MASK |
|
||||
GDK_SMOOTH_SCROLL_MASK |
|
||||
gtk_widget_get_events (widget);
|
||||
|
||||
priv->bin_window = gdk_window_new (window,
|
||||
|
Loading…
Reference in New Issue
Block a user