Set some more atoms for _NET_SUPPORTED (Thanks lexszero)

This commit is contained in:
Michael Stapelberg 2010-09-01 16:23:18 +02:00
parent af9cbc126c
commit 95243d1967
2 changed files with 5 additions and 5 deletions

View File

@ -57,14 +57,14 @@ enum { _NET_SUPPORTED = 0,
_NET_WM_WINDOW_TYPE_SPLASH,
_NET_WM_DESKTOP,
_NET_WM_STRUT_PARTIAL,
_NET_CURRENT_DESKTOP,
_NET_ACTIVE_WINDOW,
_NET_WORKAREA,
WM_PROTOCOLS,
WM_DELETE_WINDOW,
UTF8_STRING,
WM_STATE,
WM_CLIENT_LEADER,
_NET_CURRENT_DESKTOP,
_NET_ACTIVE_WINDOW,
_NET_WORKAREA
WM_CLIENT_LEADER
};
extern unsigned int xcb_numlock_mask;

View File

@ -514,7 +514,7 @@ int main(int argc, char *argv[], char *env[]) {
/* Set up the atoms we support */
check_error(conn, xcb_change_property_checked(conn, XCB_PROP_MODE_REPLACE, root, atoms[_NET_SUPPORTED],
ATOM, 32, 7, atoms), "Could not set _NET_SUPPORTED");
ATOM, 32, 16, atoms), "Could not set _NET_SUPPORTED");
/* Set up the window managers name */
xcb_change_property(conn, XCB_PROP_MODE_REPLACE, root, atoms[_NET_SUPPORTING_WM_CHECK], WINDOW, 32, 1, &root);
xcb_change_property(conn, XCB_PROP_MODE_REPLACE, root, atoms[_NET_WM_NAME], atoms[UTF8_STRING], 8, strlen("i3"), "i3");