forked from AuroraMiddleware/gtk
wayland: Be more careful when destroying windows
We call gdk_wayland_window_hide_surface when the window gets destroyed, and in this case, the frame clock might not exist anymore. This was showing up in the displayclose testcase.
This commit is contained in:
parent
de684dac1b
commit
0dc6726f02
@ -1345,8 +1345,12 @@ gdk_wayland_window_hide_surface (GdkWindow *window)
|
||||
|
||||
if (impl->awaiting_frame)
|
||||
{
|
||||
GdkFrameClock *frame_clock;
|
||||
|
||||
impl->awaiting_frame = FALSE;
|
||||
_gdk_frame_clock_thaw (gdk_window_get_frame_clock (window));
|
||||
frame_clock = gdk_window_get_frame_clock (window);
|
||||
if (frame_clock)
|
||||
_gdk_frame_clock_thaw (frame_clock);
|
||||
}
|
||||
|
||||
if (impl->gtk_surface)
|
||||
|
Loading…
Reference in New Issue
Block a user