1
0
Fork 0
forked from wry/wry

config: add mouse-follows-focus option

This commit is contained in:
Nicolaus Jacobsen 2026-03-10 09:36:13 +01:00 committed by Julian Orth
parent 0d4ee299d4
commit 216d104b73
14 changed files with 134 additions and 6 deletions

View file

@ -1664,6 +1664,12 @@ fn load_config(initial_load: bool, auto_reload: bool, persistent: &Rc<Persistent
if let Some(f) = &config.egui.monospace_fonts {
set_egui_monospace_fonts(f.iter().map(|s| &**s));
}
if let Some(mouse_follows_focus) = config.mouse_follows_focus {
#[expect(deprecated)]
persistent
.seat
.unstable_set_mouse_follows_focus(mouse_follows_focus);
}
}
fn create_command(exec: &Exec) -> Command {