[gtk+] 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+] Only send exposes on unmap if window really was unmapped
- Date: Thu, 5 Nov 2009 13:23:00 +0000 (UTC)
commit a299797883440e7671956d73761885ec102840b0
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.
gdk/gdkwindow.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index edb9581..63eb847 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);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]