aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/pugl_x11.c
diff options
context:
space:
mode:
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;