forked from AuroraMiddleware/gtk
wayland: Avoid crashes inside wl_proxy_marshal()
Suggested by Garnacho. Hopefully fixes #1349. Note: I'm riskily committing this via web UI not because I'm lazy (though I am :) but because I'm seeing a weird host key when I try to push or pull from GitLab.
This commit is contained in:
parent
41f2815e20
commit
b4464e1274
@ -932,6 +932,9 @@ gdk_window_impl_wayland_end_paint (GdkWindow *window)
|
||||
cairo_rectangle_int_t rect;
|
||||
int i, n;
|
||||
|
||||
if (!GDK_WINDOW_IS_MAPPED (window))
|
||||
return;
|
||||
|
||||
if (impl->staging_cairo_surface &&
|
||||
_gdk_wayland_is_shm_surface (impl->staging_cairo_surface) &&
|
||||
!window->current_paint.use_gl &&
|
||||
|
Loading…
Reference in New Issue
Block a user