aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/x11.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/x11.c b/src/x11.c
index 40a79f8..9b688bb 100644
--- a/src/x11.c
+++ b/src/x11.c
@@ -216,20 +216,23 @@ updateSizeHints(const PuglView* view)
sizeHints.max_height = (int)view->frame.height;
} else {
if (view->defaultWidth || view->defaultHeight) {
- sizeHints.flags = PBaseSize;
+ sizeHints.flags |= PBaseSize;
sizeHints.base_width = view->defaultWidth;
sizeHints.base_height = view->defaultHeight;
}
+
if (view->minWidth || view->minHeight) {
- sizeHints.flags = PMinSize;
+ sizeHints.flags |= PMinSize;
sizeHints.min_width = view->minWidth;
sizeHints.min_height = view->minHeight;
}
+
if (view->maxWidth || view->maxHeight) {
- sizeHints.flags = PMaxSize;
+ sizeHints.flags |= PMaxSize;
sizeHints.max_width = view->maxWidth;
sizeHints.max_height = view->maxHeight;
}
+
if (view->minAspectX) {
sizeHints.flags |= PAspect;
sizeHints.min_aspect.x = view->minAspectX;