[gtk/matthias/fix-min-size] window: Don't set min_size > size
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthias/fix-min-size] window: Don't set min_size > size
- Date: Fri, 7 Aug 2020 17:57:34 +0000 (UTC)
commit f6d9e15c16278a1aa373fb0c1526509af1c84ebb
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Aug 7 13:55:02 2020 -0400
window: Don't set min_size > size
This fixes the failing reftest.
gtk/gtkwindow.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index b228b7630b..d84729442f 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -4348,8 +4348,8 @@ toplevel_compute_size (GdkToplevel *toplevel,
get_shadow_width (window, &shadow);
- min_width = default_width + shadow.left + shadow.right;
- min_height = default_height + 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]