]> git.sur5r.net Git - i3/i3/commitdiff
Set some more atoms for _NET_SUPPORTED (Thanks lexszero)
authorMichael Stapelberg <michael@stapelberg.de>
Wed, 1 Sep 2010 14:23:18 +0000 (16:23 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Wed, 1 Sep 2010 14:23:18 +0000 (16:23 +0200)
include/xcb.h
src/mainx.c

index 78e1373a964cc86cf15645e0a29f55184ca63b7a..8a21fe4a902f02c2236d9f616fc2ae2277b34f2c 100644 (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;
index 7e1b394bc4d3e118da0220f5cffe90ce08c64c95..234f86ef69678c4b22502eaa8b62dc2bfe8f7adb 100644 (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 manager’s 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");