xwayland: Allow eavesdropping on certain keyboard/pointer events

This commit is contained in:
Victoria Brekenfeld 2025-03-28 17:45:28 +01:00 committed by Victoria Brekenfeld
parent 23f51eb150
commit cbc4ad6fc2
6 changed files with 330 additions and 24 deletions

View file

@ -274,12 +274,12 @@ fn update_focus_state(
}
}
let serial = serial.unwrap_or_else(|| SERIAL_COUNTER.next_serial());
state
.common
.xwayland_notify_focus_change(target.cloned(), serial);
ActiveFocus::set(seat, target.cloned());
keyboard.set_focus(
state,
target.cloned(),
serial.unwrap_or_else(|| SERIAL_COUNTER.next_serial()),
);
keyboard.set_focus(state, target.cloned(), serial);
std::mem::drop(keyboard);
//update the focused output or set it to the active output