aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/x11.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/x11.c b/src/x11.c
index ac4950d..fc0e2af 100644
--- a/src/x11.c
+++ b/src/x11.c
@@ -1631,9 +1631,8 @@ puglSetSize(PuglView* const view, const unsigned width, const unsigned height)
return PUGL_BAD_PARAMETER;
}
- if (win) {
- return XResizeWindow(display, win, width, height) ? PUGL_SUCCESS
- : PUGL_UNKNOWN_ERROR;
+ if (win && !XResizeWindow(display, win, width, height)) {
+ return PUGL_UNKNOWN_ERROR;
}
view->frame.width = (PuglSpan)width;