summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlberts Muktupāvels <alberts.muktupavels@gmail.com>2022-10-03 15:55:10 +0300
committerAlberts Muktupāvels <alberts.muktupavels@gmail.com>2022-10-03 15:55:10 +0300
commit964b9ea28f3dc0630a219bc5a77e2eef09f5ac3c (patch)
tree3956b17ab65b5e53bcc89eb0aa09b74f5deb4a69
parent3396ec611e48b0a1063ce07cf05247424564693d (diff)
downloadmetacity-964b9ea28f3dc0630a219bc5a77e2eef09f5ac3c.tar.gz
window-props: do not set XSizeHints flags
Keep flags as they were set on client window.
-rw-r--r--src/core/window-props.c6
1 files changed, 0 insertions, 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 ***/