[gtk+/layered-windows: 8/10] gdk: Fix repaint of layered region during raise
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/layered-windows: 8/10] gdk: Fix repaint of layered region during raise
- Date: Thu, 1 Dec 2011 16:49:26 +0000 (UTC)
commit 80a363adf880870372da29ac248411a3579efd50
Author: Alexander Larsson <alexl redhat com>
Date: Thu Dec 1 16:44:51 2011 +0100
gdk: Fix repaint of layered region during raise
gdk/gdkwindow.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index f37eb2e..0f53f23 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -5293,7 +5293,11 @@ gdk_window_raise (GdkWindow *window)
old_region = NULL;
if (gdk_window_is_viewable (window) &&
!window->input_only)
- old_region = cairo_region_copy (window->clip_region);
+ {
+ old_region = cairo_region_copy (window->clip_region);
+ /* Don't keep old region if it was layered */
+ cairo_region_subtract (old_region, window->layered_region);
+ }
/* Keep children in (reverse) stacking order */
gdk_window_raise_internal (window);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]