window-rules: support title criteria

Example config:

    <windowRules>
      <windowRule identifier="foot" title="max">
        <action name="Maximize"/>
      </windowRule>
    </windowRules>

Observe that:

- `foot -T foo` starts maximized
- `xterm -T foo` starts normal
This commit is contained in:
Johan Malm 2023-05-09 21:20:05 +01:00
parent 5b962d5437
commit 6f1dc9a134
5 changed files with 90 additions and 30 deletions

View file

@ -20,6 +20,7 @@ enum property {
*/
struct window_rule {
char *identifier;
char *title;
enum window_rule_event event;
struct wl_list actions;