summaryrefslogtreecommitdiff
path: root/pugl/pugl_x11.c
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-09-28 22:00:30 +0200
committerDavid Robillard <d@drobilla.net>2014-12-16 18:31:22 -0500
commit2e07e028c1080051846b1b200493e528a8f9a5e6 (patch)
tree61db9c5aba47555204d1b054662ac1954008d256 /pugl/pugl_x11.c
parent3fa6c2c10f7d4ca06fd30e2442dcd25f492cc351 (diff)
Support minimum window size.
Conflicts: pugl/pugl_win.cpp
Diffstat (limited to 'pugl/pugl_x11.c')
-rw-r--r--pugl/pugl_x11.c5
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) {