Add PID to Window IPC

This commit is contained in:
Ivan Molodetskikh
2024-11-12 09:09:33 +03:00
parent 17861e0003
commit d193928f31
8 changed files with 51 additions and 1 deletions
+3
View File
@@ -1773,6 +1773,7 @@ impl Niri {
compositor_state: Default::default(),
can_view_decoration_globals: config.prefer_no_csd,
restricted: false,
credentials_unknown: false,
});
if let Err(err) = state.niri.display_handle.insert_client(client, data) {
@@ -4825,6 +4826,8 @@ pub struct ClientState {
pub can_view_decoration_globals: bool,
/// Whether this client is denied from the restricted protocols such as security-context.
pub restricted: bool,
/// We cannot retrieve this client's socket credentials.
pub credentials_unknown: bool,
}
impl ClientData for ClientState {