From 37f4c644d34e77d076a818854e2c3467b2b14b54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Wed, 19 Feb 2020 09:31:32 +0100 Subject: [PATCH] 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. --- gdk/gdksurface.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gdk/gdksurface.c b/gdk/gdksurface.c index 7eb4280f8b..9790be98a3 100644 --- a/gdk/gdksurface.c +++ b/gdk/gdksurface.c @@ -2083,6 +2083,9 @@ G_GNUC_END_IGNORE_DEPRECATIONS } GDK_SURFACE_GET_CLASS (surface)->hide (surface); + + surface->x = 0; + surface->y = 0; } /**