summaryrefslogtreecommitdiff
path: root/ewmh
diff options
context:
space:
mode:
authorArnaud Fontaine <arnau@debian.org>2013-07-16 17:48:32 +0900
committerArnaud Fontaine <arnau@debian.org>2013-07-16 18:18:52 +0900
commitc33a20fa5876e96c5ec6ec882b681379f145a66e (patch)
tree697e19ce9b96694b7ebfa8fc8c7f4eecde783cf1 /ewmh
parentb488f4142298640f3237914a489c8eb6107922fd (diff)
Even though EWMH spec does not mandate window to be set, some WM expect it to be set.
For example, Awesome 3.4 with Zaphod mode checks this attribute to match it to the relevant root window. Signed-off-by: Arnaud Fontaine <arnau@debian.org>
Diffstat (limited to 'ewmh')
-rw-r--r--ewmh/ewmh.c.m49
1 files changed, 6 insertions, 3 deletions
diff --git a/ewmh/ewmh.c.m4 b/ewmh/ewmh.c.m4
index 21c4db1..d951208 100644
--- a/ewmh/ewmh.c.m4
+++ b/ewmh/ewmh.c.m4
@@ -662,7 +662,8 @@ xcb_ewmh_request_change_desktop_geometry(xcb_ewmh_connection_t *ewmh,
{
const uint32_t data[] = { new_width, new_height };
- return xcb_ewmh_send_client_message(ewmh->connection, XCB_NONE,
+ return xcb_ewmh_send_client_message(ewmh->connection,
+ ewmh->screens[screen_nbr]->root,
ewmh->screens[screen_nbr]->root,
ewmh->_NET_DESKTOP_GEOMETRY,
sizeof(data), data);
@@ -713,7 +714,8 @@ xcb_ewmh_request_change_desktop_viewport(xcb_ewmh_connection_t *ewmh,
{
const uint32_t data[] = { x, y };
- return xcb_ewmh_send_client_message(ewmh->connection, XCB_NONE,
+ return xcb_ewmh_send_client_message(ewmh->connection,
+ ewmh->screens[screen_nbr]->root,
ewmh->screens[screen_nbr]->root,
ewmh->_NET_DESKTOP_VIEWPORT,
sizeof(data), data);
@@ -733,7 +735,8 @@ xcb_ewmh_request_change_current_desktop(xcb_ewmh_connection_t *ewmh,
{
const uint32_t data[] = { new_desktop, timestamp };
- return xcb_ewmh_send_client_message(ewmh->connection, XCB_NONE,
+ return xcb_ewmh_send_client_message(ewmh->connection,
+ ewmh->screens[screen_nbr]->root,
ewmh->screens[screen_nbr]->root,
ewmh->_NET_CURRENT_DESKTOP,
sizeof(data), data);