summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dgl/src/pugl/pugl_x11.c6
-rw-r--r--distrho/src/DistrhoUIInternal.hpp2
2 files changed, 6 insertions, 2 deletions
diff --git a/dgl/src/pugl/pugl_x11.c b/dgl/src/pugl/pugl_x11.c
index 22432488..c15bbeff 100644
--- a/dgl/src/pugl/pugl_x11.c
+++ b/dgl/src/pugl/pugl_x11.c
@@ -296,9 +296,13 @@ puglCreateWindow(PuglView* view, const char* title)
sizeHints.max_height = view->height;
XSetNormalHints(impl->display, impl->win, &sizeHints);
} else if (view->min_width > 0 && view->min_height > 0) {
- sizeHints.flags = PMinSize;
+ sizeHints.flags = PMinSize|PAspect;
sizeHints.min_width = view->min_width;
sizeHints.min_height = view->min_height;
+ sizeHints.min_aspect.x = view->min_width;
+ sizeHints.min_aspect.y = view->min_height;
+ sizeHints.max_aspect.x = view->min_width;
+ sizeHints.max_aspect.y = view->min_height;
XSetNormalHints(impl->display, impl->win, &sizeHints);
}
diff --git a/distrho/src/DistrhoUIInternal.hpp b/distrho/src/DistrhoUIInternal.hpp
index 8a045a93..8a01be6f 100644
--- a/distrho/src/DistrhoUIInternal.hpp
+++ b/distrho/src/DistrhoUIInternal.hpp
@@ -157,7 +157,7 @@ public:
DISTRHO_SAFE_ASSERT_RETURN(fUI != nullptr,);
// set window size
- setResizable(false);
+ setResizable(true);
setSize(fUI->getWidth(), fUI->getHeight());
}