*
* i3 - an improved dynamic tiling window manager
*
- * © 2009 Michael Stapelberg and contributors
+ * © 2009-2011 Michael Stapelberg and contributors
*
* See file LICENSE for license information.
*
Con *focused_ws = con_get_workspace(focused);
Con *output;
uint32_t idx = 0;
+ /* We count to get the index of this workspace because named workspaces
+ * don’t have the ->num property */
TAILQ_FOREACH(output, &(croot->nodes_head), nodes) {
Con *ws;
TAILQ_FOREACH(ws, &(output_get_content(output)->nodes_head), nodes) {
if (ws == focused_ws) {
xcb_change_property(conn, XCB_PROP_MODE_REPLACE, root,
- atoms[_NET_CURRENT_DESKTOP], CARDINAL, 32, 1, &idx);
+ A__NET_CURRENT_DESKTOP, A_CARDINAL, 32, 1, &idx);
return;
}
++idx;
*/
void ewmh_update_active_window(xcb_window_t window) {
xcb_change_property(conn, XCB_PROP_MODE_REPLACE, root,
- atoms[_NET_ACTIVE_WINDOW], WINDOW, 32, 1, &window);
+ A__NET_ACTIVE_WINDOW, A_WINDOW, 32, 1, &window);
}
/*
}
}
xcb_change_property(conn, XCB_PROP_MODE_REPLACE, root,
- atoms[_NET_WORKAREA], CARDINAL, 32,
+ A__NET_WORKAREA, A_CARDINAL, 32,
num_workspaces * (sizeof(Rect) / sizeof(uint32_t)),
workarea);
free(workarea);