mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
x11: Always update shadow size
Not updating shadow size unconditionally would lead to shadow size not being set on map, which would lead mutter to think that we are a Window without extents and then become confused when we suddenly set some. Make sure that doesn't happen by always having shadows set on map, just like GTK3. Fixes #4136
This commit is contained in:
parent
f77f941401
commit
213490099b
@ -280,7 +280,7 @@ compute_toplevel_size (GdkSurface *surface,
|
||||
gdk_toplevel_size_init (&size, bounds_width, bounds_height);
|
||||
gdk_toplevel_notify_compute_size (GDK_TOPLEVEL (surface), &size);
|
||||
|
||||
if (size.shadow.is_valid && update_geometry)
|
||||
if (size.shadow.is_valid)
|
||||
{
|
||||
update_shadow_size (surface,
|
||||
size.shadow.left,
|
||||
|
Loading…
Reference in New Issue
Block a user