From 65f7499f1cec84aaba107077699bbca9497fb1c1 Mon Sep 17 00:00:00 2001 From: Yuri Nesterov Date: Thu, 16 May 2024 12:52:47 +0300 Subject: [PATCH] wayland: add support for security-context-v1 --- docs/labwc-config.5.scd | 8 +++++++- docs/rc.xml.all | 4 ++-- include/labwc.h | 1 + include/view.h | 2 ++ include/window-rules.h | 2 ++ src/config/rcxml.c | 15 ++++++++++++++- src/server.c | 12 ++++++++++++ src/view.c | 30 ++++++++++++++++++++++++++++++ src/window-rules.c | 2 ++ 9 files changed, 72 insertions(+), 4 deletions(-) diff --git a/docs/labwc-config.5.scd b/docs/labwc-config.5.scd index 26cefdb2..7d8982dc 100644 --- a/docs/labwc-config.5.scd +++ b/docs/labwc-config.5.scd @@ -851,7 +851,8 @@ defined as shown below. *Criteria* -** +** 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 diff --git a/docs/rc.xml.all b/docs/rc.xml.all index a8f9f3a0..a4e70efb 100644 --- a/docs/rc.xml.all +++ b/docs/rc.xml.all @@ -552,8 +552,8 @@