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.
icc-effect-5.14.5
Martin Gräßlin 2014-09-19 10:04:00 +02:00
parent 58adbe4d80
commit 2573d5e711
2 changed files with 30 additions and 0 deletions

View File

@ -62,6 +62,19 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#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
{

View File

@ -42,6 +42,23 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <unistd.h>
#include <xcb/glx.h>
#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 <tuple>
#if __cplusplus <= 201103L