From 10ab86187de448ffdc8017c6ab0764150708f2f0 Mon Sep 17 00:00:00 2001 From: Joshua Fuhs Date: Sat, 23 Jun 2012 00:43:26 -0400 Subject: [PATCH] Must hide before show because WinShow does not bring the new window to the top. This results in some odd looking view switches. --- src/Monitor.ahk | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Monitor.ahk b/src/Monitor.ahk index f22e2b2..1cd2214 100644 --- a/src/Monitor.ahk +++ b/src/Monitor.ahk @@ -73,16 +73,16 @@ Monitor_activateView(v) { Monitor_#%m%_aView_#1 := v Manager_hideShow := True + StringTrimRight, wndIds, View_#%m%_#%aView%_wndIds, 1 + Loop, PARSE, wndIds, `; + If Not (Manager_#%A_LoopField%_tags & (1 << v - 1)) + WinHide, ahk_id %A_LoopField% DetectHiddenWindows, On View_arrange(m, v) DetectHiddenWindows, Off StringTrimRight, wndIds, View_#%m%_#%v%_wndIds, 1 Loop, PARSE, wndIds, `; WinShow, ahk_id %A_LoopField% - StringTrimRight, wndIds, View_#%m%_#%aView%_wndIds, 1 - Loop, PARSE, wndIds, `; - If Not (Manager_#%A_LoopField%_tags & (1 << v - 1)) - WinHide, ahk_id %A_LoopField% Manager_hideShow := False