aboutsummaryrefslogtreecommitdiffstats
path: root/src/x11.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/x11.c')
-rw-r--r--src/x11.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/x11.c b/src/x11.c
index 2b594b7..a422e73 100644
--- a/src/x11.c
+++ b/src/x11.c
@@ -278,7 +278,9 @@ puglRealize(PuglView* view)
// Ensure that we're unrealized and that a reasonable backend has been set
if (impl->win) {
return PUGL_FAILURE;
- } else if (!view->backend || !view->backend->configure) {
+ }
+
+ if (!view->backend || !view->backend->configure) {
return PUGL_BAD_BACKEND;
}
@@ -902,9 +904,9 @@ puglSendEvent(PuglView* view, const PuglEvent* event)
if (xev.type) {
if (XSendEvent(view->impl->display, view->impl->win, False, 0, &xev)) {
return PUGL_SUCCESS;
- } else {
- return PUGL_UNKNOWN_ERROR;
}
+
+ return PUGL_UNKNOWN_ERROR;
}
return PUGL_UNSUPPORTED_TYPE;