Watch
1
0
Fork
You've already forked smithay
0

fix(xwm): Pass inputs to xwayland even if input model is None

Resolves #2003
This commit is contained in:
Nikola Hristov 2026-04-20 14:10:25 +03:00 • committed by Ian Douglas Scott
commit 211c19d712

View file

@ -1303,10 +1303,6 @@ impl<D: SeatHandler + 'static> KeyboardTarget<D> for X11Surface {
serial: Serial,
time: u32,
) {
if self.input_model() == WmInputModel::None {
return;
}
let mut xstate = self.state.lock().unwrap();
if let Some(surface) = xstate.wl_surface.as_ref() {
KeyboardTarget::key(surface, seat, data, key, state, serial, time)
@ -1322,10 +1318,6 @@ impl<D: SeatHandler + 'static> KeyboardTarget<D> for X11Surface {
}
fn modifiers(&self, seat: &Seat<D>, data: &mut D, modifiers: ModifiersState, serial: Serial) {
if self.input_model() == WmInputModel::None {
return;
}
let mut state = self.state.lock().unwrap();
if let Some(surface) = state.wl_surface.as_ref() {
KeyboardTarget::modifiers(surface, seat, data, modifiers, serial);