Handle _NET_WM_STATE_STICKY, but only for floating containers. If this atom is set, the floating window will always be automatically moved to the currently active workspace of the output that it is on. This is the equivalent of a sticky note stuck to the monitor.

We will respect this atom upon managing a window as well as when we receive a request that changes the sticky state.

fixes #1455
This commit is contained in:
Ingo Bürk
2015-08-23 13:36:12 +02:00
parent 4d6f8b1329
commit 2c338b6ae2
11 changed files with 92 additions and 2 deletions

View File

@ -384,6 +384,9 @@ void manage_window(xcb_window_t window, xcb_get_window_attributes_cookie_t cooki
want_floating = true;
}
if (xcb_reply_contains_atom(state_reply, A__NET_WM_STATE_STICKY))
nc->sticky = true;
FREE(state_reply);
FREE(type_reply);