[gtk+/client-side-windows: 86/284] Move all backend specific raise/lower code into _internal helpers
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk+/client-side-windows: 86/284] Move all backend specific raise/lower code into _internal helpers
- Date: Thu, 2 Apr 2009 14:06:57 -0400 (EDT)
commit cce1ff8eb859f128f0945dbccb678fd159ce88ee
Author: Alexander Larsson <alexl redhat com>
Date: Mon Jan 19 10:40:13 2009 +0100
Move all backend specific raise/lower code into _internal helpers
---
gdk/gdkwindow.c | 21 ++++++++-------------
1 files changed, 8 insertions(+), 13 deletions(-)
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index ef89881..b7125bf 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -5178,6 +5178,9 @@ gdk_window_raise_internal (GdkWindow *window)
parent->children = g_list_remove (parent->children, window);
parent->children = g_list_prepend (parent->children, window);
}
+
+ if (gdk_window_has_impl (private))
+ GDK_WINDOW_IMPL_GET_IFACE (private->impl)->raise (window);
}
static void
@@ -5212,13 +5215,8 @@ gdk_window_show_internal (GdkWindow *window, gboolean raise)
was_mapped = GDK_WINDOW_IS_MAPPED (window);
if (raise)
- {
- /* Keep children in (reverse) stacking order */
- gdk_window_raise_internal (window);
-
- if (gdk_window_has_impl (private))
- GDK_WINDOW_IMPL_GET_IFACE (private->impl)->raise (window);
- }
+ /* Keep children in (reverse) stacking order */
+ gdk_window_raise_internal (window);
if (gdk_window_has_impl (private))
{
@@ -5300,9 +5298,6 @@ gdk_window_raise (GdkWindow *window)
/* Keep children in (reverse) stacking order */
gdk_window_raise_internal (window);
- if (gdk_window_has_impl (private))
- GDK_WINDOW_IMPL_GET_IFACE (private->impl)->raise (window);
-
recompute_visible_regions (private, TRUE, FALSE);
gdk_window_invalidate_rect (window, NULL, TRUE);
@@ -5319,6 +5314,9 @@ gdk_window_lower_internal (GdkWindow *window)
parent->children = g_list_remove (parent->children, window);
parent->children = g_list_append (parent->children, window);
}
+
+ if (gdk_window_has_impl (private))
+ GDK_WINDOW_IMPL_GET_IFACE (private->impl)->lower (window);
}
static void
@@ -5376,9 +5374,6 @@ gdk_window_lower (GdkWindow *window)
recompute_visible_regions (private, TRUE, FALSE);
- if (gdk_window_has_impl (private))
- GDK_WINDOW_IMPL_GET_IFACE (private->impl)->lower (window);
-
_gdk_syntesize_crossing_events_for_geometry_change (window);
gdk_window_invalidate_in_parent (private);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]