aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/pugl_x11.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-02-17 20:49:15 +0100
committerDavid Robillard <d@drobilla.net>2019-02-17 21:16:57 +0100
commit197c19b74bd26f5a7526a88621a556f551b2db5a (patch)
treec9462855439c6f9cbd9f02cd5d754e5b55a73835 /pugl/pugl_x11.c
parent51dcb00d5a5e6874f1e83d9cafb9ca2c1bd8bbf7 (diff)
downloadpugl-197c19b74bd26f5a7526a88621a556f551b2db5a.tar.gz
pugl-197c19b74bd26f5a7526a88621a556f551b2db5a.tar.bz2
pugl-197c19b74bd26f5a7526a88621a556f551b2db5a.zip
Add configuration API
Diffstat (limited to 'pugl/pugl_x11.c')
-rw-r--r--pugl/pugl_x11.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pugl/pugl_x11.c b/pugl/pugl_x11.c
index 5218433..6315759 100644
--- a/pugl/pugl_x11.c
+++ b/pugl/pugl_x11.c
@@ -88,8 +88,8 @@ puglCreateWindow(PuglView* view, const char* title)
return 1;
}
- impl->ctx.configure(view);
- if (!impl->vi) {
+ if (impl->ctx.configure(view) || !impl->vi) {
+ impl->ctx.destroy(view);
return 2;
}
@@ -120,7 +120,7 @@ puglCreateWindow(PuglView* view, const char* title)
XSizeHints sizeHints;
memset(&sizeHints, 0, sizeof(sizeHints));
- if (!view->resizable) {
+ if (!view->hints.resizable) {
sizeHints.flags = PMinSize|PMaxSize;
sizeHints.min_width = view->width;
sizeHints.min_height = view->height;