[gtk+] gdkwindow: Fix gdk_window_set_child_shapes()
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gdkwindow: Fix gdk_window_set_child_shapes()
- Date: Tue, 4 Feb 2014 11:04:17 +0000 (UTC)
commit cc5752aff40eb3f2b4a8a6ea38f0c41cb569b0de
Author: Alexander Larsson <alexl redhat com>
Date: Tue Feb 4 12:03:03 2014 +0100
gdkwindow: Fix gdk_window_set_child_shapes()
This did the reverse of what it should, making the shape be
the part where the children were *not*.
gdk/gdkwindow.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 691e035..4fe70bc 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -6421,6 +6421,8 @@ do_child_shapes (GdkWindow *window,
if (merge && window->shape)
cairo_region_subtract (region, window->shape);
+ cairo_region_xor_rectangle (region, &r);
+
gdk_window_shape_combine_region (window, region, 0, 0);
}
@@ -6542,6 +6544,8 @@ do_child_input_shapes (GdkWindow *window,
if (merge && window->input_shape)
cairo_region_subtract (region, window->input_shape);
+ cairo_region_xor_rectangle (region, &r);
+
gdk_window_input_shape_combine_region (window, region, 0, 0);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]