From 95243d1967bcf15c50fe983122f645950998291f Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Wed, 1 Sep 2010 16:23:18 +0200 Subject: [PATCH] Set some more atoms for _NET_SUPPORTED (Thanks lexszero) --- include/xcb.h | 8 ++++---- src/mainx.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/xcb.h b/include/xcb.h index 78e1373a..8a21fe4a 100644 --- a/include/xcb.h +++ b/include/xcb.h @@ -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; diff --git a/src/mainx.c b/src/mainx.c index 7e1b394b..234f86ef 100644 --- a/src/mainx.c +++ b/src/mainx.c @@ -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"); -- 2.39.5