window: Set shadow size in ::compute-size
This is the new way of communicating shadow size.
This commit is contained in:
@@ -4135,6 +4135,11 @@ toplevel_compute_size (GdkToplevel *toplevel,
|
||||
|
||||
get_shadow_width (window, &shadow);
|
||||
|
||||
if (priv->use_client_shadow)
|
||||
gdk_toplevel_size_set_shadow_size (size,
|
||||
shadow.left, shadow.right,
|
||||
shadow.top, shadow.bottom);
|
||||
|
||||
min_width = MIN (default_width + shadow.left + shadow.right, width);
|
||||
min_height = MIN (default_height + shadow.top + shadow.bottom, height);
|
||||
gdk_toplevel_size_set_min_size (size, min_width, min_height);
|
||||
|
||||
Reference in New Issue
Block a user