1
0
Fork 0
forked from wry/wry

config: add warp-mouse-to-focus action

This commit is contained in:
Nicolaus Jacobsen 2026-03-10 09:36:13 +01:00 committed by Julian Orth
parent 107245d877
commit aaf02dc4e1
13 changed files with 74 additions and 2 deletions

View file

@ -247,6 +247,10 @@ impl Action {
b.new(move || persistent.seat.enable_unicode_input())
}
SimpleCommand::OpenControlCenter => b.new(open_control_center),
SimpleCommand::WarpMouseToFocus => {
let persistent = state.persistent.clone();
b.new(move || persistent.seat.warp_mouse_to_focus())
}
},
Action::Multi { actions } => {
let actions: Vec<_> = actions.into_iter().map(|a| a.into_fn(state)).collect();