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*.
This commit is contained in:
Alexander Larsson
2014-02-04 12:03:03 +01:00
committed by Matthias Clasen
parent 9a298efbac
commit 5e39ee3ab4

View File

@@ -6415,6 +6415,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);
}
@@ -6536,6 +6538,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);
}