summaryrefslogtreecommitdiff
path: root/video.c
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2012-01-13 17:20:43 +0100
committerJohns <johns98@gmx.net>2012-01-13 17:20:43 +0100
commit81d7ef97556df59aede50d48dfcd61c38e13df61 (patch)
treeb99aa42e25515cc12c825967472766691b56fcb3 /video.c
parent7f7de8678f930e4476ade1cbf86edecf45c7689d (diff)
downloadvdr-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.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/video.c b/video.c
index 444ff2d..3781b5c 100644
--- a/video.c
+++ b/video.c
@@ -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