summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorU-GER\bcohen3 <bcohen3@BCOHEN3-MOBL.ger.corp.intel.com>2011-05-12 12:18:59 +0300
committerU-GER\bcohen3 <bcohen3@BCOHEN3-MOBL.ger.corp.intel.com>2011-05-12 12:18:59 +0300
commitf6bb651a8c975535a2ad2830763e29323ff3a78f (patch)
treef667e54e0d3c4893905a26b7ff078731d6d00387
parentb8622a83a9ec0f6f710b7bcbc03e490b37fd30f3 (diff)
Fix: moving/removing a new window (unlisted in its desktop array)
-rw-r--r--winii.ahk5
1 files changed, 4 insertions, 1 deletions
diff --git a/winii.ahk b/winii.ahk
index 8a5234b..5af1273 100644
--- a/winii.ahk
+++ b/winii.ahk
@@ -143,16 +143,19 @@ RemoveWindowID(desktopIdx, ID)
{
global
+ removed := 0
Loop, % windows%desktopIdx%
{
if (windows%desktopIdx%%A_Index% = ID)
{
- windowTagsCount%ID% -= 1
RemoveWindowID_byIndex(desktopIdx, A_Index)
WinHide ahk_id %ID%
+ removed := 1
Break
}
}
+ if (removed = 0)
+ WinHide ahk_id %ID%
}
; this removes the window id at index <ID_idx> from desktop number <desktopIdx>