wayland: Avoid a crash with GtkGLArea

We must not call gdk_wayland_window_attach_image when
using GL for drawing, this leads to a crash.

https://bugzilla.gnome.org/show_bug.cgi?id=754770
This commit is contained in:
Matthias Clasen 2015-09-13 14:18:19 -04:00
parent ea294fd92c
commit b64a0b9233

View File

@ -1289,7 +1289,8 @@ gdk_wayland_window_show (GdkWindow *window,
_gdk_make_event (window, GDK_MAP, NULL, FALSE);
if (impl->cairo_surface)
if (impl->cairo_surface &&
_gdk_wayland_is_shm_surface (impl->cairo_surface))
gdk_wayland_window_attach_image (window);
}