diff options
author | John Ankarström <john@ankarstrom.se> | 2021-01-30 23:43:09 +0100 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-01-30 23:43:09 +0100 |
commit | eb1e2ee89889bb1962b93af0e29d0495d7a618de (patch) | |
tree | cb41c515094c1b0f7b28b29185c128554a39e474 | |
parent | 494d3f500d234f1b6b635bbff693e8025422b6b5 (diff) | |
download | ahk-eb1e2ee89889bb1962b93af0e29d0495d7a618de.tar.gz |
layout: Fix layout switching bug
-rw-r--r-- | tt.layout.ahk | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tt.layout.ahk b/tt.layout.ahk index 5b15342..a9f8759 100644 --- a/tt.layout.ahk +++ b/tt.layout.ahk @@ -14,6 +14,8 @@ else if (v = current) new := activelayouts[k+1] } + if (new = "") + new := activelayouts[1] } DllCall("SendMessage", "UInt", WinActive("A"), "UInt", 80, "UInt", 1, "UInt", new) Sleep, 100 |