Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
imawizard committed Jul 30, 2024
1 parent 90ac3be commit 1c7552b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/miguru/miguru.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -1084,7 +1084,10 @@ class MiguruWM extends WMEvents {
}
ws.Remove(hwnd)
if wasActive {
if ws.Index == this.activeWsIdx {
if next == hwnd {
warn("!!!KACKEEEEEEEEEE")
} else if ws.Index == this.activeWsIdx {
warn(">>>> focus {}", WinInfo(next))
this._focusWindow(next, false)
} else {
ws.ActiveWindow := next
Expand Down Expand Up @@ -1136,6 +1139,8 @@ class MiguruWM extends WMEvents {
hwnd: hwnd,
ticks: A_TickCount,
}
debug(() => ["Active window might have been closed {}",
WinInfo(hwnd)])
}
this._delayed.Replace(
this._hide.Bind(this, event, hwnd, false),
Expand Down

0 comments on commit 1c7552b

Please sign in to comment.