diff options
Diffstat (limited to 'pugl/pugl_x11.c')
-rw-r--r-- | pugl/pugl_x11.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pugl/pugl_x11.c b/pugl/pugl_x11.c index e0852be..e3325cd 100644 --- a/pugl/pugl_x11.c +++ b/pugl/pugl_x11.c @@ -210,6 +210,11 @@ puglCreateWindow(PuglView* view, const char* title) sizeHints.max_width = view->width; sizeHints.max_height = view->height; XSetNormalHints(impl->display, impl->win, &sizeHints); + } else if (view->min_width || view->min_height) { + sizeHints.flags = PMinSize; + sizeHints.min_width = view->min_width; + sizeHints.min_height = view->min_height; + XSetNormalHints(impl->display, impl->win, &sizeHints); } if (title) { |