gdk/surface: Reset position after hiding

The x and y position of GdkSurface is only valid when visible, so reset
them to their inital state after hiding.
This commit is contained in:
Jonas Ådahl 2020-02-19 09:31:32 +01:00
parent 46d40cd4bd
commit 37f4c644d3

View File

@ -2083,6 +2083,9 @@ G_GNUC_END_IGNORE_DEPRECATIONS
}
GDK_SURFACE_GET_CLASS (surface)->hide (surface);
surface->x = 0;
surface->y = 0;
}
/**