[gtk+/gtk-2-18] Only send exposes on unmap if window really was unmapped
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-18] Only send exposes on unmap if window really was unmapped
- Date: Thu, 5 Nov 2009 13:22:30 +0000 (UTC)
commit 8954a7daf527619af4c7639323b9b45c2a9bd38a
Author: Alexander Larsson <alexl redhat com>
Date: Tue Nov 3 14:41:36 2009 +0100
Only send exposes on unmap if window really was unmapped
Exposing when you hide a hidden window is just a waste of time.
(cherry picked from commit a299797883440e7671956d73761885ec102840b0)
gdk/gdkwindow.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index d5b427f..ff7bdd8 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -6831,7 +6831,8 @@ gdk_window_hide (GdkWindow *window)
}
/* Invalidate the rect */
- gdk_window_invalidate_in_parent (private);
+ if (was_mapped)
+ gdk_window_invalidate_in_parent (private);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]