|
|
@ -198,7 +198,7 @@ static void backend_destroy(struct wlr_backend *backend) {
|
|
|
|
wlr_drm_format_set_finish(&x11->dri3_formats);
|
|
|
|
wlr_drm_format_set_finish(&x11->dri3_formats);
|
|
|
|
wlr_drm_format_set_finish(&x11->shm_formats);
|
|
|
|
wlr_drm_format_set_finish(&x11->shm_formats);
|
|
|
|
|
|
|
|
|
|
|
|
#if HAS_XCB_ERRORS
|
|
|
|
#if HAVE_XCB_ERRORS
|
|
|
|
xcb_errors_context_free(x11->errors_context);
|
|
|
|
xcb_errors_context_free(x11->errors_context);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
@ -629,7 +629,7 @@ struct wlr_backend *wlr_x11_backend_create(struct wl_display *display,
|
|
|
|
shm_format->format, DRM_FORMAT_MOD_INVALID);
|
|
|
|
shm_format->format, DRM_FORMAT_MOD_INVALID);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#if HAS_XCB_ERRORS
|
|
|
|
#if HAVE_XCB_ERRORS
|
|
|
|
if (xcb_errors_context_new(x11->xcb, &x11->errors_context) != 0) {
|
|
|
|
if (xcb_errors_context_new(x11->xcb, &x11->errors_context) != 0) {
|
|
|
|
wlr_log(WLR_ERROR, "Failed to create error context");
|
|
|
|
wlr_log(WLR_ERROR, "Failed to create error context");
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
@ -673,7 +673,7 @@ error_x11:
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static void handle_x11_error(struct wlr_x11_backend *x11, xcb_value_error_t *ev) {
|
|
|
|
static void handle_x11_error(struct wlr_x11_backend *x11, xcb_value_error_t *ev) {
|
|
|
|
#if HAS_XCB_ERRORS
|
|
|
|
#if HAVE_XCB_ERRORS
|
|
|
|
const char *major_name = xcb_errors_get_name_for_major_code(
|
|
|
|
const char *major_name = xcb_errors_get_name_for_major_code(
|
|
|
|
x11->errors_context, ev->major_opcode);
|
|
|
|
x11->errors_context, ev->major_opcode);
|
|
|
|
if (!major_name) {
|
|
|
|
if (!major_name) {
|
|
|
@ -711,7 +711,7 @@ log_raw:
|
|
|
|
|
|
|
|
|
|
|
|
static void handle_x11_unknown_event(struct wlr_x11_backend *x11,
|
|
|
|
static void handle_x11_unknown_event(struct wlr_x11_backend *x11,
|
|
|
|
xcb_generic_event_t *ev) {
|
|
|
|
xcb_generic_event_t *ev) {
|
|
|
|
#if HAS_XCB_ERRORS
|
|
|
|
#if HAVE_XCB_ERRORS
|
|
|
|
const char *extension;
|
|
|
|
const char *extension;
|
|
|
|
const char *event_name = xcb_errors_get_name_for_xcb_event(
|
|
|
|
const char *event_name = xcb_errors_get_name_for_xcb_event(
|
|
|
|
x11->errors_context, ev, &extension);
|
|
|
|
x11->errors_context, ev, &extension);
|
|
|
|