summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);