summaryrefslogtreecommitdiffstats
path: root/src/glx/glx_error.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glx/glx_error.c')
-rw-r--r--src/glx/glx_error.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/glx/glx_error.c b/src/glx/glx_error.c
index 0855c35951a..b3860db2e37 100644
--- a/src/glx/glx_error.c
+++ b/src/glx/glx_error.c
@@ -65,3 +65,22 @@ __glXSendError(Display * dpy, int_fast8_t errorCode, uint_fast32_t resourceID,
UnlockDisplay(dpy);
}
+
+void
+__glXSendErrorForXcb(Display * dpy, const xcb_generic_error_t *err)
+{
+ xError error;
+
+ LockDisplay(dpy);
+
+ error.type = X_Error;
+ error.errorCode = err->error_code;
+ error.sequenceNumber = err->sequence;
+ error.resourceID = err->resource_id;
+ error.minorCode = err->minor_code;
+ error.majorCode = err->major_code;
+
+ _XError(dpy, &error);
+
+ UnlockDisplay(dpy);
+}