* vim:ts=4:sw=4:expandtab
*
* i3 - an improved dynamic tiling window manager
+ * © 2009-2011 Michael Stapelberg and contributors (see also: LICENSE)
*
- * © 2009-2011 Michael Stapelberg and contributors
- *
- * See file LICENSE for license information.
- *
- * ewmh.c: Functions to get/set certain EWMH properties easily.
+ * ewmh.c: Get/set certain EWMH properties easily.
*
*/
-
#include "all.h"
/*
TAILQ_FOREACH(ws, &(output_get_content(output)->nodes_head), nodes) {
if (ws == focused_ws) {
xcb_change_property(conn, XCB_PROP_MODE_REPLACE, root,
- A__NET_CURRENT_DESKTOP, A_CARDINAL, 32, 1, &idx);
+ A__NET_CURRENT_DESKTOP, XCB_ATOM_CARDINAL, 32, 1, &idx);
return;
}
++idx;
*/
void ewmh_update_active_window(xcb_window_t window) {
xcb_change_property(conn, XCB_PROP_MODE_REPLACE, root,
- A__NET_ACTIVE_WINDOW, A_WINDOW, 32, 1, &window);
+ A__NET_ACTIVE_WINDOW, XCB_ATOM_WINDOW, 32, 1, &window);
}
/*
}
}
xcb_change_property(conn, XCB_PROP_MODE_REPLACE, root,
- A__NET_WORKAREA, A_CARDINAL, 32,
+ A__NET_WORKAREA, XCB_ATOM_CARDINAL, 32,
num_workspaces * (sizeof(Rect) / sizeof(uint32_t)),
workarea);
free(workarea);
XCB_PROP_MODE_REPLACE,
root,
A__NET_CLIENT_LIST_STACKING,
- A_WINDOW,
+ XCB_ATOM_WINDOW,
32,
num_windows,
stack);