forked from AuroraMiddleware/gtk
wayland: Unset window_impl->commit_pending when hiding the surface
A surface may be hidden when a frame is already scheduled, which may cause crashes on on_frame_clock_after_paint() when calling commit() on a NULL surface. To fix this, ensure commit_pending is also set to FALSE when the surface is gone. https://bugzilla.gnome.org/show_bug.cgi?id=735226
This commit is contained in:
parent
382d68ff8e
commit
7fbac57712
@ -1182,6 +1182,7 @@ gdk_wayland_window_hide_surface (GdkWindow *window)
|
||||
impl->outputs = NULL;
|
||||
}
|
||||
|
||||
impl->pending_commit = FALSE;
|
||||
impl->mapped = FALSE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user