diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-03-22 00:49:16 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-03-22 17:33:38 -0400 |
commit | eea16f03f5b3f76da165dba805a819f4c760cefa (patch) | |
tree | b62c7bec4d81edd76aafa9c02115af0ecba2c7c7 /gtk/gtktextview.c | |
parent | 6f829d445063eeb54097957706a33a516d4604aa (diff) | |
download | gtk+-eea16f03f5b3f76da165dba805a819f4c760cefa.tar.gz |
Stop using GDK_POINTER_MOTION_HINT_MASK in widgets
It is deprecated and no longer needed, and,as observed in
https://bugzilla.gnome.org/show_bug.cgi?id=746253 it
interferes with turning off event compression.
Diffstat (limited to 'gtk/gtktextview.c')
-rw-r--r-- | gtk/gtktextview.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c index 98956980ea..a2475868c6 100644 --- a/gtk/gtktextview.c +++ b/gtk/gtktextview.c @@ -9421,15 +9421,14 @@ text_window_realize (GtkTextWindow *win, attributes.y = 0; attributes.width = win->allocation.width; attributes.height = win->allocation.height; - attributes.event_mask = (GDK_EXPOSURE_MASK | - GDK_SCROLL_MASK | - GDK_SMOOTH_SCROLL_MASK | - GDK_KEY_PRESS_MASK | - GDK_BUTTON_PRESS_MASK | - GDK_BUTTON_RELEASE_MASK | - GDK_POINTER_MOTION_MASK | - GDK_POINTER_MOTION_HINT_MASK | - gtk_widget_get_events (win->widget)); + attributes.event_mask = gtk_widget_get_events (win->widget) + | GDK_EXPOSURE_MASK + | GDK_SCROLL_MASK + | GDK_SMOOTH_SCROLL_MASK + | GDK_KEY_PRESS_MASK + | GDK_BUTTON_PRESS_MASK + | GDK_BUTTON_RELEASE_MASK + | GDK_POINTER_MOTION_MASK; win->bin_window = gdk_window_new (win->window, &attributes, |