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
parent
58adbe4d80
commit
2573d5e711
13
events.cpp
13
events.cpp
|
@ -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
|
||||
{
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue