summaryrefslogtreecommitdiff
path: root/gtk/gtktextview.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-03-22 00:49:16 -0400
committerMatthias Clasen <mclasen@redhat.com>2015-03-22 17:33:38 -0400
commiteea16f03f5b3f76da165dba805a819f4c760cefa (patch)
treeb62c7bec4d81edd76aafa9c02115af0ecba2c7c7 /gtk/gtktextview.c
parent6f829d445063eeb54097957706a33a516d4604aa (diff)
downloadgtk+-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.c17
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,