feat(wm): add force-focus command

On rare occasions and usually with Firefox, the desired application will
fail to be focused with the regular focus commands. This commit
introduces a new command, force-focus, which can be used to simulate a
left-click on a window that has failed to take focus, since this is what
I have to do to work around the issue anyway.
This commit is contained in:
LGUG2Z
2022-12-15 17:08:23 -08:00
parent ca09b9b300
commit 613d69a737
5 changed files with 56 additions and 0 deletions
+4
View File
@@ -60,6 +60,10 @@ Close() {
RunWait, komorebic.exe close, , Hide
}
ForceFocus() {
RunWait, komorebic.exe force-focus, , Hide
}
CycleFocus(cycle_direction) {
RunWait, komorebic.exe cycle-focus %cycle_direction%, , Hide
}