forked from AuroraMiddleware/gtk
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:
parent
ea294fd92c
commit
b64a0b9233
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user