summaryrefslogtreecommitdiff
path: root/ewmh
diff options
context:
space:
mode:
authorArnaud Fontaine <arnau@debian.org>2009-12-15 09:33:27 +0100
committerArnaud Fontaine <arnau@debian.org>2010-11-14 20:22:29 +0900
commit8add219807de5c54b805c9ebdd7ad56df78a5969 (patch)
tree81479b77840666ee045a3325174c0b1bb3418c13 /ewmh
parentb636664a4d76f7a64b5ea29966e9b1d65fcdf7fa (diff)
Fix typos on _NET_WM_SYNC_REQUEST_COUNTER functions and add it in the Atoms list
Diffstat (limited to 'ewmh')
-rw-r--r--ewmh/atomlist.m41
-rw-r--r--ewmh/ewmh.c.m49
2 files changed, 6 insertions, 4 deletions
diff --git a/ewmh/atomlist.m4 b/ewmh/atomlist.m4
index d0af08d..ffa0e7e 100644
--- a/ewmh/atomlist.m4
+++ b/ewmh/atomlist.m4
@@ -37,6 +37,7 @@ _NET_WM_USER_TIME_WINDOW,
_NET_FRAME_EXTENTS,
_NET_WM_PING,
_NET_WM_SYNC_REQUEST,
+_NET_WM_SYNC_REQUEST_COUNTER,
_NET_WM_FULLSCREEN_MONITORS,
_NET_WM_FULL_PLACEMENT,
UTF8_STRING,
diff --git a/ewmh/ewmh.c.m4 b/ewmh/ewmh.c.m4
index 23446b9..1c343bd 100644
--- a/ewmh/ewmh.c.m4
+++ b/ewmh/ewmh.c.m4
@@ -1189,7 +1189,7 @@ xcb_ewmh_send_wm_ping(xcb_ewmh_connection_t *ewmh,
}
/**
- * _NET_WM_SYNC_REQUES
+ * _NET_WM_SYNC_REQUEST
* _NET_WM_SYNC_REQUEST_COUNTER
*/
@@ -1202,7 +1202,8 @@ xcb_ewmh_set_wm_sync_request_counter(xcb_ewmh_connection_t *ewmh,
const uint32_t data[] = { low, high };
return xcb_change_property(ewmh->connection, XCB_PROP_MODE_REPLACE, window,
- ewmh->_NET_WM_SYNC_REQUEST, XCB_ATOM_CARDINAL, 32,
+ ewmh->_NET_WM_SYNC_REQUEST_COUNTER,
+ XCB_ATOM_CARDINAL, 32,
countof(data), data);
}
@@ -1215,12 +1216,12 @@ xcb_ewmh_set_wm_sync_request_counter_checked(xcb_ewmh_connection_t *ewmh,
const uint32_t data[] = { low, high };
return xcb_change_property_checked(ewmh->connection, XCB_PROP_MODE_REPLACE,
- window, ewmh->_NET_WM_SYNC_REQUEST,
+ window, ewmh->_NET_WM_SYNC_REQUEST_COUNTER,
XCB_ATOM_CARDINAL, 32, countof(data),
data);
}
-DO_GET_PROPERTY(wm_sync_request_counter, _NET_WM_SYNC_REQUEST,
+DO_GET_PROPERTY(wm_sync_request_counter, _NET_WM_SYNC_REQUEST_COUNTER,
XCB_ATOM_CARDINAL, 2)
uint8_t