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:
Carlos Garnacho 2014-09-01 20:20:49 +02:00
parent 382d68ff8e
commit 7fbac57712

View File

@ -1182,6 +1182,7 @@ gdk_wayland_window_hide_surface (GdkWindow *window)
impl->outputs = NULL;
}
impl->pending_commit = FALSE;
impl->mapped = FALSE;
}