diff options
author | David Robillard <d@drobilla.net> | 2019-02-17 20:49:15 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-02-17 21:16:57 +0100 |
commit | 197c19b74bd26f5a7526a88621a556f551b2db5a (patch) | |
tree | c9462855439c6f9cbd9f02cd5d754e5b55a73835 /pugl/pugl_x11.c | |
parent | 51dcb00d5a5e6874f1e83d9cafb9ca2c1bd8bbf7 (diff) | |
download | pugl-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.c | 6 |
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; |