diff options
author | Alexander Larsson <alexl@redhat.com> | 2009-11-03 14:41:36 +0100 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2009-11-05 13:58:04 +0100 |
commit | 8954a7daf527619af4c7639323b9b45c2a9bd38a (patch) | |
tree | 4a61c43e75183f01a167b5fc55ce4bd4cf954890 | |
parent | a68e02b7c75bc69f6fa8281de72b9d5ba91e050c (diff) | |
download | gdk-pixbuf-8954a7daf527619af4c7639323b9b45c2a9bd38a.tar.gz |
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)
-rw-r--r-- | gdk/gdkwindow.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c index d5b427f3f..ff7bdd8ca 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); } /** |