From 2e07e028c1080051846b1b200493e528a8f9a5e6 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 28 Sep 2014 22:00:30 +0200 Subject: Support minimum window size. Conflicts: pugl/pugl_win.cpp --- pugl/pugl_x11.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pugl/pugl_x11.c') 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) { -- cgit v1.2.3