Don’t rely on libxcb-wm any longer, as it got removed in libxcb 0.3.4
See http://cgit.freedesktop.org/xcb/util/commit/?id=4c9a707f472e49bc3005354db265a0214071d46b
This commit is contained in:
@ -11,6 +11,7 @@
|
||||
*
|
||||
*/
|
||||
#include <xcb/xcb.h>
|
||||
#include <xcb/xcb_atom.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#ifndef _DATA_H
|
||||
@ -116,6 +117,25 @@ struct Ignore_Event {
|
||||
SLIST_ENTRY(Ignore_Event) ignore_events;
|
||||
};
|
||||
|
||||
/*
|
||||
* Emulates the behaviour of tables of libxcb-wm, which in libxcb 0.3.4 suddenly vanished.
|
||||
*
|
||||
*/
|
||||
struct keyvalue_element {
|
||||
uint32_t key;
|
||||
void *value;
|
||||
|
||||
TAILQ_ENTRY(keyvalue_element) elements;
|
||||
};
|
||||
|
||||
typedef struct {
|
||||
enum xcb_atom_fast_tag_t tag;
|
||||
union {
|
||||
xcb_get_window_attributes_cookie_t cookie;
|
||||
uint8_t override_redirect;
|
||||
} u;
|
||||
} window_attributes_t;
|
||||
|
||||
/******************************************************************************
|
||||
* Major types
|
||||
*****************************************************************************/
|
||||
|
Reference in New Issue
Block a user