xwayland: Always allow writing into clipboard

Overriding contents is no security issue and this is necessary for a
bunch of apps to work correctly.
This commit is contained in:
Victoria Brekenfeld 2025-03-27 17:41:39 +01:00 committed by Victoria Brekenfeld
parent 2e2ca3eda0
commit 8d733a1245

View file

@ -762,7 +762,6 @@ impl XwmHandler for State {
fn new_selection(&mut self, xwm: XwmId, selection: SelectionTarget, mime_types: Vec<String>) { fn new_selection(&mut self, xwm: XwmId, selection: SelectionTarget, mime_types: Vec<String>) {
trace!(?selection, ?mime_types, "Got Selection from Xwayland",); trace!(?selection, ?mime_types, "Got Selection from Xwayland",);
if self.common.is_x_focused(xwm) {
let seat = self let seat = self
.common .common
.shell .shell
@ -780,7 +779,6 @@ impl XwmHandler for State {
} }
} }
} }
}
fn cleared_selection(&mut self, xwm: XwmId, selection: SelectionTarget) { fn cleared_selection(&mut self, xwm: XwmId, selection: SelectionTarget) {
let shell = self.common.shell.read().unwrap(); let shell = self.common.shell.read().unwrap();