fix(core): disable undo_backspace when using slow inject mode on linux
This commit is contained in:
parent
a584ee94ec
commit
39655269c3
|
@ -168,6 +168,13 @@ impl<'a> espanso_engine::process::UndoEnabledProvider for ConfigManager<'a> {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Because we cannot filter out espanso-generated events when using the X11 record injection
|
||||||
|
// method, we need to disable undo_backspace to avoid looping (espanso picks up its own
|
||||||
|
// injections, causing the program to misbehave)
|
||||||
|
if cfg!(target_os = "linux") && self.active().disable_x11_fast_inject() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
self.active().undo_backspace()
|
self.active().undo_backspace()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user