Fix for GH#1: Can not manage Google Chrome. This fix was suggested by @KyleSolo and confirmed by @darsain and myself.

This commit is contained in:
Josh Fuhs 2014-08-17 14:08:46 -04:00
parent c525f9504e
commit c43f26f1f2

View file

@ -472,16 +472,6 @@ Manager_manage(preferredMonitor, preferredView, wndId)
tags := 1 << (preferredView - 1) tags := 1 << (preferredView - 1)
} }
; @todo: Remove this application-specific code.
WinGet, wndProcessName, ProcessName, ahk_id %wndId%
If (wndProcessName = "chrome.exe")
{
WinGet, wndControlList, ControlList, ahk_id %wndId%
StringSplit, c, wndControlList, `n
If (c0 <= 1)
isManaged := False
}
a := Manager__setWinProperties( wndId, isManaged, m, tags, isDecorated, isFloating, hideTitle, action) a := Manager__setWinProperties( wndId, isManaged, m, tags, isDecorated, isFloating, hideTitle, action)
; Do view placement. ; Do view placement.