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