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

@ -55,6 +55,12 @@ bool con_is_split(Con *con);
*/
bool con_is_hidden(Con *con);
/**
* Returns whether the container or any of its children is sticky.
*
*/
bool con_is_sticky(Con *con);
/**
* Returns true if this node has regular or floating children.
*