Bugfix: Correctly set the _NET_CLIENT_LIST_STACKING hint (fixes chromium tabbar)

Fixes #287
This commit is contained in:
Michael Stapelberg
2011-08-03 20:07:03 +02:00
parent 04a4d7c44a
commit 192dbdabd6
5 changed files with 68 additions and 3 deletions

View File

@ -110,3 +110,20 @@ void ewmh_update_workarea() {
free(workarea);
xcb_flush(conn);
}
/*
* Updates the _NET_CLIENT_LIST_STACKING hint.
*
*/
void ewmh_update_client_list_stacking(xcb_window_t *stack, int num_windows) {
DLOG("Updating _NET_CLIENT_LIST_STACKING\n");
xcb_change_property(
conn,
XCB_PROP_MODE_REPLACE,
root,
A__NET_CLIENT_LIST_STACKING,
A_WINDOW,
32,
num_windows,
stack);
}