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
parent 79cf8cd598
commit cc5752aff4

View File

@ -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);
}