re-implemented 'rule-based single-window-action'
This commit is contained in:
parent
0019122079
commit
8f2961b1af
1 changed files with 5 additions and 2 deletions
|
@ -356,7 +356,7 @@ Manager_loop(index, increment, lowerBound, upperBound)
|
||||||
Return, index
|
Return, index
|
||||||
}
|
}
|
||||||
|
|
||||||
Manager__setWinProperties(wndId, isManaged, m, tags, isDecorated, isFloating, hideTitle )
|
Manager__setWinProperties(wndId, isManaged, m, tags, isDecorated, isFloating, hideTitle, action = "")
|
||||||
{
|
{
|
||||||
Local a
|
Local a
|
||||||
|
|
||||||
|
@ -365,6 +365,9 @@ Manager__setWinProperties(wndId, isManaged, m, tags, isDecorated, isFloating, hi
|
||||||
|
|
||||||
If (isManaged)
|
If (isManaged)
|
||||||
{
|
{
|
||||||
|
If (action = "Close" Or action = "Maximize")
|
||||||
|
Manager_win%action%(wndId)
|
||||||
|
|
||||||
Manager_managedWndIds .= wndId ";"
|
Manager_managedWndIds .= wndId ";"
|
||||||
Monitor_moveWindow(m, wndId)
|
Monitor_moveWindow(m, wndId)
|
||||||
Manager_#%wndId%_tags := tags
|
Manager_#%wndId%_tags := tags
|
||||||
|
@ -451,7 +454,7 @@ Manager_manage(preferredMonitor, preferredView, wndId)
|
||||||
isManaged := False
|
isManaged := False
|
||||||
}
|
}
|
||||||
|
|
||||||
a := Manager__setWinProperties( wndId, isManaged, m, tags, isDecorated, isFloating, hideTitle)
|
a := Manager__setWinProperties( wndId, isManaged, m, tags, isDecorated, isFloating, hideTitle, action)
|
||||||
|
|
||||||
; Do view placement.
|
; Do view placement.
|
||||||
If isManaged {
|
If isManaged {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue