sane-input-handler: fix toggleKeyboard improperly calling effect

'cant call proc when errexit is set...' this seems like a genuine limitation of osh
This commit is contained in:
2025-03-31 07:40:32 +00:00
parent 9fcaba8bf3
commit f0fbf78b1a

View File

@@ -331,7 +331,10 @@ proc toggleKeyboard {
# `env` so that we get the right `kill` binary instead of bash's builtin
# `kill` only one keyboard process. in the case of e.g. sandboxing,
# the keyboard might consist of multiple processes and each one we signal would cause a toggle
if effect env kill -s RTMIN+0 "$p" {
try {
effect env kill -s RTMIN+0 "$p"
}
if ! failed {
break
}
}