Add for_window --always

This allows a for_window command to trigger multiple times on the same window;
the default is to only run the command once (when it first matches).

This can be useful to apply rules to applications like VLC that hide and show a
window without re-creating it (when using the taskbar icon to hide/show).
This commit is contained in:
Daniel De Graaf 2020-09-02 22:01:49 -04:00
parent 9c30140b0a
commit 7bf8c3ead0
3 changed files with 18 additions and 2 deletions

View file

@ -45,6 +45,7 @@ struct criteria {
#endif
bool floating;
bool tiling;
bool always;
char urgent; // 'l' for latest or 'o' for oldest
struct pattern *workspace;
pid_t pid;