From a299797883440e7671956d73761885ec102840b0 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Tue, 3 Nov 2009 14:41:36 +0100 Subject: [PATCH] Only send exposes on unmap if window really was unmapped Exposing when you hide a hidden window is just a waste of time. --- gdk/gdkwindow.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c index edb9581b51..63eb8474ac 100644 --- a/gdk/gdkwindow.c +++ b/gdk/gdkwindow.c @@ -6829,7 +6829,8 @@ gdk_window_hide (GdkWindow *window) } /* Invalidate the rect */ - gdk_window_invalidate_in_parent (private); + if (was_mapped) + gdk_window_invalidate_in_parent (private); } /**