mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-29 06:51:10 +00:00
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:
parent
7cbb573ca9
commit
ed2c837574
@ -1579,7 +1579,8 @@ 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 */
|
||||
GDK_WINDOW_IMPL_GET_IFACE (private->impl)->shape_combine_region ((GdkWindow *)private, private->clip_region, 0, 0);
|
||||
if (private->viewable)
|
||||
GDK_WINDOW_IMPL_GET_IFACE (private->impl)->shape_combine_region ((GdkWindow *)private, private->clip_region, 0, 0);
|
||||
|
||||
reparent_to_impl (private);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user