[metacity] window-props: do not set XSizeHints flags



commit 964b9ea28f3dc0630a219bc5a77e2eef09f5ac3c
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Mon Oct 3 15:55:10 2022 +0300

    window-props: do not set XSizeHints flags
    
    Keep flags as they were set on client window.

 src/core/window-props.c | 6 ------
 1 file changed, 6 deletions(-)
---
diff --git a/src/core/window-props.c b/src/core/window-props.c
index fcd1e90e..66e5903b 100644
--- a/src/core/window-props.c
+++ b/src/core/window-props.c
@@ -1197,7 +1197,6 @@ meta_set_normal_hints (MetaWindow *window,
       window->size_hints.base_width = 0;
       window->size_hints.base_height = 0;
     }
-  window->size_hints.flags |= PBaseSize;
 
   /* Get min size hints */
   if (window->size_hints.flags & PMinSize)
@@ -1217,7 +1216,6 @@ meta_set_normal_hints (MetaWindow *window,
       window->size_hints.min_width = 0;
       window->size_hints.min_height = 0;
     }
-  window->size_hints.flags |= PMinSize;
 
   /* Get max size hints */
   if (window->size_hints.flags & PMaxSize)
@@ -1231,7 +1229,6 @@ meta_set_normal_hints (MetaWindow *window,
     {
       window->size_hints.max_width = G_MAXINT;
       window->size_hints.max_height = G_MAXINT;
-      window->size_hints.flags |= PMaxSize;
     }
 
   /* Get resize increment hints */
@@ -1247,7 +1244,6 @@ meta_set_normal_hints (MetaWindow *window,
     {
       window->size_hints.width_inc = 1;
       window->size_hints.height_inc = 1;
-      window->size_hints.flags |= PResizeInc;
     }
 
   /* Get aspect ratio hints */
@@ -1267,7 +1263,6 @@ meta_set_normal_hints (MetaWindow *window,
       window->size_hints.min_aspect.y = G_MAXINT;
       window->size_hints.max_aspect.x = G_MAXINT;
       window->size_hints.max_aspect.y = 1;
-      window->size_hints.flags |= PAspect;
     }
 
   /* Get gravity hint */
@@ -1283,7 +1278,6 @@ meta_set_normal_hints (MetaWindow *window,
                   "Window %s doesn't set gravity, using NW\n",
                   window->desc);
       window->size_hints.win_gravity = NorthWestGravity;
-      window->size_hints.flags |= PWinGravity;
     }
 
   /*** Lots of sanity checking ***/


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