51e79e06c6
Forgot to change the patch name in changes file. OBS-URL: https://build.opensuse.org/request/show/382893 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gtk3?expand=0&rev=225
29 lines
976 B
Diff
29 lines
976 B
Diff
@@ -, +, @@
|
|
required
|
|
gtk/gtkwindow.c | 10 ++++++----
|
|
1 file changed, 6 insertions(+), 4 deletions(-)
|
|
--- a/gtk/gtkwindow.c
|
|
+++ a/gtk/gtkwindow.c
|
|
@@ -10036,14 +10036,16 @@ gtk_window_update_fixed_size (GtkWindow *window,
|
|
|
|
if (info->default_width > -1)
|
|
{
|
|
- new_geometry->min_width = MAX (default_width_csd, new_width);
|
|
- new_geometry->max_width = new_geometry->min_width;
|
|
+ gint w = MAX (MAX (default_width_csd, new_width), new_geometry->min_width);
|
|
+ new_geometry->min_width = w;
|
|
+ new_geometry->max_width = w;
|
|
}
|
|
|
|
if (info->default_height > -1)
|
|
{
|
|
- new_geometry->min_height = MAX (default_height_csd, new_height);
|
|
- new_geometry->max_height = new_geometry->min_height;
|
|
+ gint h = MAX (MAX (default_height_csd, new_height), new_geometry->min_height);
|
|
+ new_geometry->min_height = h;
|
|
+ new_geometry->max_height = h;
|
|
}
|
|
}
|
|
}
|
|
|