aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/detail
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-10-20 23:09:14 +0200
committerDavid Robillard <d@drobilla.net>2020-10-20 23:09:14 +0200
commit31245d358357dacce3b1ff70458c37a6c04008bd (patch)
tree28141a637ffa4aa77ec2856255808a6ddf65d064 /pugl/detail
parenta8d2aa2761dcbaf491da09a375e246758b1137c4 (diff)
downloadpugl-31245d358357dacce3b1ff70458c37a6c04008bd.tar.gz
pugl-31245d358357dacce3b1ff70458c37a6c04008bd.tar.bz2
pugl-31245d358357dacce3b1ff70458c37a6c04008bd.zip
Fix puglSendEvent() error handling on X11
Diffstat (limited to 'pugl/detail')
-rw-r--r--pugl/detail/x11.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pugl/detail/x11.c b/pugl/detail/x11.c
index 6958785..fd76606 100644
--- a/pugl/detail/x11.c
+++ b/pugl/detail/x11.c
@@ -859,6 +859,8 @@ 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;
}
}