From 2573d5e711187d3cc55c438629312c65f1ffe16f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Fri, 19 Sep 2014 10:04:00 +0200 Subject: [PATCH] Workaround for systems not yet having XCB 1.10 If the new used event types are not present, we define them. This should fix the broken build on the CI system. --- events.cpp | 13 +++++++++++++ glxbackend.cpp | 17 +++++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/events.cpp b/events.cpp index 82c44050e7..b3b9ee68a9 100644 --- a/events.cpp +++ b/events.cpp @@ -62,6 +62,19 @@ along with this program. If not, see . #include "killwindow.h" #include "x11eventfilter.h" +#ifndef XCB_GE_GENERIC +#define XCB_GE_GENERIC 35 +typedef struct xcb_ge_generic_event_t { + uint8_t response_type; /**< */ + uint8_t extension; /**< */ + uint16_t sequence; /**< */ + uint32_t length; /**< */ + uint16_t event_type; /**< */ + uint8_t pad0[22]; /**< */ + uint32_t full_sequence; /**< */ +} xcb_ge_generic_event_t; +#endif + namespace KWin { diff --git a/glxbackend.cpp b/glxbackend.cpp index def6e9f83d..40539f6a61 100644 --- a/glxbackend.cpp +++ b/glxbackend.cpp @@ -42,6 +42,23 @@ along with this program. If not, see . #include #include +#ifndef XCB_GLX_BUFFER_SWAP_COMPLETE +#define XCB_GLX_BUFFER_SWAP_COMPLETE 1 +typedef struct xcb_glx_buffer_swap_complete_event_t { + uint8_t response_type; /**< */ + uint8_t pad0; /**< */ + uint16_t sequence; /**< */ + uint16_t event_type; /**< */ + uint8_t pad1[2]; /**< */ + xcb_glx_drawable_t drawable; /**< */ + uint32_t ust_hi; /**< */ + uint32_t ust_lo; /**< */ + uint32_t msc_hi; /**< */ + uint32_t msc_lo; /**< */ + uint32_t sbc; /**< */ +} xcb_glx_buffer_swap_complete_event_t; +#endif + #include #if __cplusplus <= 201103L