1
0
Fork 0
forked from wry/wry

clients: grant layer-shell to unprivileged clients

This commit is contained in:
Julian Orth 2024-04-23 22:10:51 +02:00
parent ef53d72ff8
commit 886339ff96
7 changed files with 51 additions and 50 deletions

View file

@ -1,7 +1,7 @@
use {
crate::{
async_engine::SpawnedFuture,
client::ClientCaps,
client::{ClientCaps, CAP_LAYER_SHELL},
state::State,
utils::{errorfmt::ErrorFmt, oserror::OsError, xrd::xrd},
},
@ -154,7 +154,7 @@ impl Acceptor {
state.eng.spawn(accept(
acc.socket.insecure.clone(),
state.clone(),
ClientCaps::none(),
CAP_LAYER_SHELL,
)),
];
state.acceptor.set(Some(acc.clone()));