diff options
author | Arnaud Fontaine <arnau@debian.org> | 2009-12-12 17:09:31 +0100 |
---|---|---|
committer | Arnaud Fontaine <arfontaine@ITEM-58736.dhcp.oxfd.uk.sopra> | 2010-02-11 14:47:30 +0000 |
commit | 9523a4aa3e59b2050f733de2b20262bed1aacdcd (patch) | |
tree | f23458d875225fedb1bdc92f4dc36f22226b3e10 | |
parent | 943cad8e4ef875ef30ca7efe0de9bb668b30a586 (diff) |
Add missing _NET_WM_HANDLED_ICONS
-rw-r--r-- | ewmh/ewmh.c.m4 | 6 | ||||
-rw-r--r-- | ewmh/xcb_ewmh.h.m4 | 34 |
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, |