mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-16 15:14:17 +00:00
gtk/window: Use default size if non-resizable if set
This commit is contained in:
parent
42679f2903
commit
5eca548acc
@ -4277,12 +4277,22 @@ toplevel_compute_size (GdkToplevel *toplevel,
|
||||
}
|
||||
else if (!priv->resizable)
|
||||
{
|
||||
width = nat_width;
|
||||
height = nat_height;
|
||||
|
||||
gtk_window_update_csd_size (window,
|
||||
&width, &height,
|
||||
INCLUDE_CSD_SIZE);
|
||||
if (info &&
|
||||
info->default_width > 0 &&
|
||||
info->default_height > 0)
|
||||
{
|
||||
width = info->default_width;
|
||||
height = info->default_height;
|
||||
gtk_window_update_csd_size (window, &width, &height,
|
||||
INCLUDE_CSD_SIZE);
|
||||
}
|
||||
else
|
||||
{
|
||||
width = nat_width;
|
||||
height = nat_height;
|
||||
gtk_window_update_csd_size (window, &width, &height,
|
||||
INCLUDE_CSD_SIZE);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user