diff options
Diffstat (limited to 'gdk/x11')
-rw-r--r-- | gdk/x11/gdksurface-x11.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/gdk/x11/gdksurface-x11.c b/gdk/x11/gdksurface-x11.c index f04f74d486..29b6dae9f7 100644 --- a/gdk/x11/gdksurface-x11.c +++ b/gdk/x11/gdksurface-x11.c @@ -1285,6 +1285,23 @@ gdk_surface_x11_show (GdkSurface *surface, gboolean already_mapped) } static void +gdk_surface_x11_withdraw (GdkSurface *surface) +{ + if (!surface->destroyed) + { + if (GDK_SURFACE_IS_MAPPED (surface)) + gdk_synthesize_surface_state (surface, + 0, + GDK_SURFACE_STATE_WITHDRAWN); + + g_assert (!GDK_SURFACE_IS_MAPPED (surface)); + + XWithdrawWindow (GDK_SURFACE_XDISPLAY (surface), + GDK_SURFACE_XID (surface), 0); + } +} + +static void gdk_surface_x11_hide (GdkSurface *surface) { /* We'll get the unmap notify eventually, and handle it then, @@ -1299,7 +1316,7 @@ gdk_surface_x11_hide (GdkSurface *surface) { case GDK_SURFACE_TOPLEVEL: case GDK_SURFACE_TEMP: /* ? */ - gdk_surface_withdraw (surface); + gdk_surface_x11_withdraw (surface); return; case GDK_SURFACE_CHILD: @@ -1313,23 +1330,6 @@ gdk_surface_x11_hide (GdkSurface *surface) GDK_SURFACE_XID (surface)); } -static void -gdk_surface_x11_withdraw (GdkSurface *surface) -{ - if (!surface->destroyed) - { - if (GDK_SURFACE_IS_MAPPED (surface)) - gdk_synthesize_surface_state (surface, - 0, - GDK_SURFACE_STATE_WITHDRAWN); - - g_assert (!GDK_SURFACE_IS_MAPPED (surface)); - - XWithdrawWindow (GDK_SURFACE_XDISPLAY (surface), - GDK_SURFACE_XID (surface), 0); - } -} - static inline void surface_x11_move (GdkSurface *surface, gint x, |