[metacity/wip/muktupavels/issue-33: 3/6] window-props: initialize min_width and min_height to 1




commit 68e784fa37b0fc083e1880f2d44a74a7960e34c2
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Sun Oct 2 23:14:00 2022 +0300

    window-props: initialize min_width and min_height to 1
    
    Later in the same function we are verifying that min & max hints
    are at least 1 pixel and if that is not the case we complain that
    setting minimum size to 0 does not make sense... Make sure that
    we don't complain about minimum size if it was not set by window.

 src/core/window-props.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/core/window-props.c b/src/core/window-props.c
index fcd1e90e..2a8cb51c 100644
--- a/src/core/window-props.c
+++ b/src/core/window-props.c
@@ -1214,8 +1214,8 @@ meta_set_normal_hints (MetaWindow *window,
     }
   else
     {
-      window->size_hints.min_width = 0;
-      window->size_hints.min_height = 0;
+      window->size_hints.min_width = 1;
+      window->size_hints.min_height = 1;
     }
   window->size_hints.flags |= PMinSize;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]