Support window-rules

Two types of window rules are supported, actions and properties. They are
defined as shown below.

    <windowRules>

      <!-- Action -->
      <windowRule identifier="some-application">
        <action name="Maximize"/>
      </windowRule>

      <!-- Property -->
      <windowRule identifier="foo*" serverDecoration="yes|no"/>

    </windowRules>

Rules are applied if windows match the criteria defined by the
'identifier' attribute which relates to app_id for native Wayland windows
and WM_CLASS for XWayland clients.

Matching against patterns with '*' (wildcard) and '?' (joker) is
supported.

Add 'serverDecoration' property.
This commit is contained in:
Johan Malm 2023-04-28 21:41:41 +01:00
parent fafaf93add
commit c1472cb64b
12 changed files with 281 additions and 3 deletions

View file

@ -374,4 +374,13 @@
</device>
</libinput>
<!--
<windowRules>
<windowRule identifier="*">
<action name="Maximize" />
</windowRule>
<windowRule identifier="some-application" serverDecoration="yes" />
</windowRules>
-->
</labwc_config>