Only apply clip_region shape for viewable windows

This fixes a problem where the clip region is not yet calculated
This commit is contained in:
Alexander Larsson 2009-07-18 21:51:11 +02:00
parent 7cbb573ca9
commit ed2c837574

View File

@ -1579,6 +1579,7 @@ gdk_window_ensure_native (GdkWindow *window)
/* The shape may not have been set, as the clip region doesn't actually
change, so do it here manually */
if (private->viewable)
GDK_WINDOW_IMPL_GET_IFACE (private->impl)->shape_combine_region ((GdkWindow *)private, private->clip_region, 0, 0);
reparent_to_impl (private);