summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnaud Fontaine <arnau@debian.org>2009-12-12 17:09:31 +0100
committerArnaud Fontaine <arnau@debian.org>2010-08-09 16:06:30 -0500
commitf2b429fdefbd17b3f4b88205e1ac532e00e10a36 (patch)
tree150fb7cb9df2922e5810a7093d198fa36ec1ff92
parent2163d90d014c6c1121092799a4ae7f5a1b515688 (diff)
Add missing _NET_WM_HANDLED_ICONS
-rw-r--r--ewmh/ewmh.c.m46
-rw-r--r--ewmh/xcb_ewmh.h.m434
2 files changed, 38 insertions, 2 deletions
diff --git a/ewmh/ewmh.c.m4 b/ewmh/ewmh.c.m4
index 72437fa..f0b9690 100644
--- a/ewmh/ewmh.c.m4
+++ b/ewmh/ewmh.c.m4
@@ -1114,6 +1114,12 @@ xcb_ewmh_get_wm_icon_reply_wipe(xcb_ewmh_get_wm_icon_reply_t *wm_icon)
DO_SINGLE_VALUE(wm_pid, _NET_WM_PID, CARDINAL, uint32_t)
/**
+ * _NET_WM_HANDLED_ICONS
+ */
+
+DO_SINGLE_VALUE(wm_handled_icons, _NET_WM_HANDLED_ICONS, CARDINAL, uint32_t)
+
+/**
* _NET_WM_USER_TIME
*/
diff --git a/ewmh/xcb_ewmh.h.m4 b/ewmh/xcb_ewmh.h.m4
index 45951c1..1526a30 100644
--- a/ewmh/xcb_ewmh.h.m4
+++ b/ewmh/xcb_ewmh.h.m4
@@ -1947,10 +1947,40 @@ xcb_ewmh_get_wm_pid_from_reply(uint32_t *pid,
static inline uint8_t
xcb_ewmh_get_wm_pid_reply(xcb_ewmh_connection_t *ewmh,
xcb_get_property_cookie_t cookie,
- uint32_t *time,
+ uint32_t *pid,
xcb_generic_error_t **e)
{
- return xcb_ewmh_get_cardinal_reply(ewmh, cookie, time, e);
+ return xcb_ewmh_get_cardinal_reply(ewmh, cookie, pid, e);
+}
+
+xcb_void_cookie_t xcb_ewmh_set_wm_handled_icons(xcb_ewmh_connection_t *ewmh,
+ xcb_window_t window,
+ uint32_t handled_icons);
+
+xcb_void_cookie_t xcb_ewmh_set_wm_handled_icons_checked(xcb_ewmh_connection_t *ewmh,
+ xcb_window_t window,
+ uint32_t handled_icons);
+
+xcb_get_property_cookie_t xcb_ewmh_get_wm_handled_icons_unchecked(xcb_ewmh_connection_t *ewmh,
+ xcb_window_t window);
+
+xcb_get_property_cookie_t xcb_ewmh_get_wm_handled_icons(xcb_ewmh_connection_t *ewmh,
+ xcb_window_t window);
+
+static inline uint8_t
+xcb_ewmh_get_wm_handled_icons_from_reply(uint32_t *handled_icons,
+ xcb_get_property_reply_t *r)
+{
+ return xcb_ewmh_get_cardinal_from_reply(handled_icons, r);
+}
+
+static inline uint8_t
+xcb_ewmh_get_wm_handled_icons_reply(xcb_ewmh_connection_t *ewmh,
+ xcb_get_property_cookie_t cookie,
+ uint32_t *handled_icons,
+ xcb_generic_error_t **e)
+{
+ return xcb_ewmh_get_cardinal_reply(ewmh, cookie, handled_icons, e);
}
xcb_void_cookie_t xcb_ewmh_set_wm_user_time(xcb_ewmh_connection_t *ewmh,