[gtk: 14/16] gdk/surface: Reset position after hiding



commit 37f4c644d34e77d076a818854e2c3467b2b14b54
Author: Jonas Ã…dahl <jadahl gmail com>
Date:   Wed Feb 19 09:31:32 2020 +0100

    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;
 }
 
 /**


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]