diff options
author | Johns <johns98@gmx.net> | 2012-01-13 17:20:43 +0100 |
---|---|---|
committer | Johns <johns98@gmx.net> | 2012-01-13 17:20:43 +0100 |
commit | 81d7ef97556df59aede50d48dfcd61c38e13df61 (patch) | |
tree | b99aa42e25515cc12c825967472766691b56fcb3 /video.c | |
parent | 7f7de8678f930e4476ade1cbf86edecf45c7689d (diff) | |
download | vdr-plugin-softhddevice-81d7ef97556df59aede50d48dfcd61c38e13df61.tar.gz vdr-plugin-softhddevice-81d7ef97556df59aede50d48dfcd61c38e13df61.tar.bz2 |
Support xcb_ewmh.h for xcb-util <0.3.8.
Diffstat (limited to 'video.c')
-rw-r--r-- | video.c | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -93,8 +93,24 @@ #include <xcb/xcb_image.h> #include <xcb/xcb_event.h> #include <xcb/xcb_atom.h> -#include <xcb/xcb_ewmh.h> #include <xcb/xcb_icccm.h> +#ifdef XCB_ICCCM_NUM_WM_SIZE_HINTS_ELEMENTS +#include <xcb/xcb_ewmh.h> +#else // compatibility hack for old xcb-util + +/** + * @brief Action on the _NET_WM_STATE property + */ +typedef enum +{ + /* Remove/unset property */ + XCB_EWMH_WM_STATE_REMOVE = 0, + /* Add/set property */ + XCB_EWMH_WM_STATE_ADD = 1, + /* Toggle property */ + XCB_EWMH_WM_STATE_TOGGLE = 2 +} xcb_ewmh_wm_state_action_t; +#endif #include <xcb/xcb_keysyms.h> #endif |