summaryrefslogtreecommitdiff
path: root/gtk/gtkglarea.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2015-09-14 10:56:13 +0200
committerAlexander Larsson <alexl@redhat.com>2015-09-14 11:01:13 +0200
commitd5f1754981129094afbe5d9c1d57e41599fad410 (patch)
treef4284fa809bbc6b9902bdcbe013ede86ea7ab93e /gtk/gtkglarea.c
parenteafedfbaf8e080a1e444f46cde082fb2734552f9 (diff)
downloadgtk+-d5f1754981129094afbe5d9c1d57e41599fad410.tar.gz
gtk: Stop setting GDK_EXPOSURE_MASK on random widgets
These days exposure happens only on the native windows (generally the toplevel window) and is propagated down recursively. The expose event is only useful for backwards compat, and in fact, for double buffered widgets we totally ignore the event (and non-double buffering breaks on wayland). So, by not setting the mask we avoid emitting these events and then later ignoring them. We still keep it on eventbox, fixed and layout as these are used in weird ways that want backwards compat.
Diffstat (limited to 'gtk/gtkglarea.c')
-rw-r--r--gtk/gtkglarea.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkglarea.c b/gtk/gtkglarea.c
index f357b10098..409840974a 100644
--- a/gtk/gtkglarea.c
+++ b/gtk/gtkglarea.c
@@ -284,7 +284,7 @@ gtk_gl_area_realize (GtkWidget *widget)
attributes.width = allocation.width;
attributes.height = allocation.height;
attributes.wclass = GDK_INPUT_ONLY;
- attributes.event_mask = gtk_widget_get_events (widget) | GDK_EXPOSURE_MASK;
+ attributes.event_mask = gtk_widget_get_events (widget);
attributes_mask = GDK_WA_X | GDK_WA_Y;