wayland: add support for security-context-v1

This commit is contained in:
Yuri Nesterov 2024-05-16 12:52:47 +03:00 committed by Johan Malm
parent 15135465d9
commit 65f7499f1c
9 changed files with 72 additions and 4 deletions

View file

@ -851,7 +851,8 @@ defined as shown below.
*Criteria*
*<windowRules><windowRule identifier="" title="" type="" matchOnce="">*
*<windowRules><windowRule identifier="" title="" sandboxEngine=""
sandboxAppId="" type="" matchOnce="">*
Define a window rule for any window which matches the criteria defined
by the attributes *identifier*, *title*, or *type*. If more than one
is defined, AND logic is used, so all have to match.
@ -863,6 +864,11 @@ defined as shown below.
*title* is the title of the window.
*sandboxEngine* is a sandbox engine name from the security context.
*sandboxAppId* is a sandbox-specific identifier for an application
from the security context.
*type* [desktop|dock|toolbar|menu|utility|splash|dialog|dropdown_menu|
popup_menu|tooltip|notification|combo|dnd|normal] relates to
NET_WM_WINDOW_TYPE for XWayland clients. Native wayland clients have

View file

@ -552,8 +552,8 @@
<!--
# Window Rules
# - Criteria can consist of 'identifier' or 'title' or both (in which
# case AND logic is used).
# - Criteria can consist of 'identifier', 'title', 'sandboxEngine' or
# 'sandboxAppId'. AND logic is used when multiple options are specified.
# - 'identifier' relates to app_id for native Wayland windows and
# WM_CLASS for XWayland clients.
# - Criteria can also contain `matchOnce="true"` meaning that the rule