Always set the shape when creating a native window.

This is not always done by recompute_visible_regions, as
the clip region doesn't change.
This commit is contained in:
Alexander Larsson 2009-01-19 16:49:34 +01:00 committed by Alexander Larsson
parent c967cabc35
commit ef3d1893b6

View File

@ -1259,6 +1259,10 @@ gdk_window_set_has_native (GdkWindow *window, gboolean has_native)
recompute_visible_regions (private, FALSE, FALSE);
/* The shape may not have been set, as the clip region doesn't actually
change, so do it here manually */
GDK_WINDOW_IMPL_GET_IFACE (private->impl)->shape_combine_region ((GdkWindow *)private, private->clip_region, 0, 0);
reparent_to_impl (private);
GDK_WINDOW_IMPL_GET_IFACE (private->impl)->set_background (window, &private->bg_color);