Diffusion KWin 18844f59259b

[wayland] Apply window rules only to xdg-shell clients

Authored by zzag on Jul 9 2019, 11:58 AM.

Description

[wayland] Apply window rules only to xdg-shell clients

Summary:
There are rules that have to be applied only once, e.g. every Remember
and Apply Initially rule, as well rules that need to configure the client,
e.g. size, etc. In the best scenario the compositor would evaluate such
rules when the client is about to be mapped.

This change limits window rules only to xdg-shell clients because right
now only this protocol lets compositors to intervene in the client
initialization process. Also, it makes things a bit easier for us on the
compositor side.

xdg-shell protocol satisfies most of ours requirements to implement window
rules, but not all of them. If the client is about to be mapped for the
second time and its size is forced by a rule, then compositor may need
to configure it. Currently, xdg-shell protocol doesn't have any mechanism
that a client could use to notify the compositor about its intent to map.

Reviewers: KWin, davidedmundson

Reviewed By: KWin, davidedmundson

Subscribers: fmonteiro, davidedmundson, kwin

Tags: KWin

Differential Revision: https://phabricator.kde.org/D19411

Details

Committed
zzagJul 9 2019, 12:13 PM
Reviewer
KWin
Differential Revision
D19411: [wayland] Apply window rules only to xdg-shell clients
Parents
R108:be48d36349e5: [autotests] Rewrite testShellClientRules
Branches
Unknown
Tags
Unknown