win32: Disconnect the frame clock

The frame clock can now survive the surface,
so we need to disconnect when the surface goes away.
This commit is contained in:
Matthias Clasen 2019-05-24 10:55:06 +00:00
parent 2aa0ceaeca
commit 07b0da615b

View File

@ -686,6 +686,10 @@ gdk_win32_surface_destroy (GdkSurface *window,
/* Remove ourself from the modal stack */
_gdk_remove_modal_window (window);
g_signal_handlers_disconnect_by_func (gdk_surface_get_frame_clock (window),
gdk_win32_impl_frame_clock_after_paint,
window);
/* Remove all our transient children */
while (surface->transient_children != NULL)
{