]> git.mdlowis.com Git - proto/labwc.git/commit
Support window-rules
authorJohan Malm <jgm323@gmail.com>
Fri, 28 Apr 2023 20:41:41 +0000 (21:41 +0100)
committerJohan Malm <johanmalm@users.noreply.github.com>
Thu, 4 May 2023 21:09:55 +0000 (22:09 +0100)
commitd609c9e3f936421c14df5246e05155e40f805538
treecce7d563b2563008128e611d60b11e0973e0e002
parentd0aafb684f45ba2f728abea5d63903197b187666
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.
12 files changed:
docs/labwc-config.5.scd
docs/rc.xml.all
include/config/rcxml.h
include/window-rules.h [new file with mode: 0644]
src/common/match.c
src/config/rcxml.c
src/meson.build
src/view-impl-common.c
src/view.c
src/window-rules.c [new file with mode: 0644]
src/xdg.c
src/xwayland.c