From 6efb6b8f4f081cfbbfb5e585a4cdc82ca6e4e3f2 Mon Sep 17 00:00:00 2001 From: Julian Orth Date: Mon, 1 Apr 2024 13:18:17 +0200 Subject: [PATCH 1/2] wayland: make layer shell a privileged global --- src/ifs/zwlr_layer_shell_v1.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ifs/zwlr_layer_shell_v1.rs b/src/ifs/zwlr_layer_shell_v1.rs index d36e2a64..2aae59f8 100644 --- a/src/ifs/zwlr_layer_shell_v1.rs +++ b/src/ifs/zwlr_layer_shell_v1.rs @@ -113,6 +113,10 @@ impl Global for ZwlrLayerShellV1Global { fn version(&self) -> u32 { 4 } + + fn secure(&self) -> bool { + true + } } simple_add_global!(ZwlrLayerShellV1Global); From a7d799aff381ea978107afaf6891f73089ea86a3 Mon Sep 17 00:00:00 2001 From: Julian Orth Date: Mon, 1 Apr 2024 13:22:25 +0200 Subject: [PATCH 2/2] wayland: make wlr-screencopy-manager a privileged global --- src/ifs/zwlr_screencopy_manager_v1.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ifs/zwlr_screencopy_manager_v1.rs b/src/ifs/zwlr_screencopy_manager_v1.rs index 63704fa3..1003e629 100644 --- a/src/ifs/zwlr_screencopy_manager_v1.rs +++ b/src/ifs/zwlr_screencopy_manager_v1.rs @@ -59,6 +59,10 @@ impl Global for ZwlrScreencopyManagerV1Global { fn version(&self) -> u32 { 3 } + + fn secure(&self) -> bool { + true + } } pub struct ZwlrScreencopyManagerV1 {