Revert previous changeset since it did too much

This commit is contained in:
Joshua Fuhs 2012-06-22 19:54:44 -04:00
parent b263ba0daf
commit 0666a89c50
4 changed files with 5 additions and 52 deletions

View file

@ -388,7 +388,6 @@ Config_saveSession() {
#+x::Manager_maximizeWindow() ; Move and resize the active window to the size of the work area (only floating windows). #+x::Manager_maximizeWindow() ; Move and resize the active window to the size of the work area (only floating windows).
#i::Manager_getWindowInfo() ; Get information for the active window (id, title, class, process name, style, geometry, tags and floating state). #i::Manager_getWindowInfo() ; Get information for the active window (id, title, class, process name, style, geometry, tags and floating state).
#+i::Manager_getWindowList() ; Get a window list for the active view (id, title and class). #+i::Manager_getWindowList() ; Get a window list for the active view (id, title and class).
#^i::Manager_logWindowList()
#Tab::View_setLayout(-1) ; Set the previously set layout. You may also use View_setLayout(">") for setting the next layout in the layout array. #Tab::View_setLayout(-1) ; Set the previously set layout. You may also use View_setLayout(">") for setting the next layout in the layout array.
#\::View_setLayout(3) ; Set the 3rd defined layout (i. e. floating layout in the default configuration). #\::View_setLayout(3) ; Set the 3rd defined layout (i. e. floating layout in the default configuration).

View file

@ -23,6 +23,3 @@ Log_msg( message ) {
FileAppend, %CurrentTime% %message%`r`n, bugn_log.txt FileAppend, %CurrentTime% %message%`r`n, bugn_log.txt
} }
Log_bare( message ) {
FileAppend, %message%`r`n, bugn_log.txt
}

View file

@ -238,48 +238,6 @@ Manager_getWindowList() {
Clipboard := text Clipboard := text
} }
Manager_logWindowInfo( w ) {
Local av, aWndId, aIsWinFocus, aIsBugnActive, aIsFloating, aIsHidden, aWndTitle, aWndStyle, aWndX, aWndY, aWndW, aWndH
WinGet, aWndId, ID, A
If aWndId = %w%
aIsWinFocus := "*"
Else
aIsWinFocus := " "
av := Monitor_#%Manager_aMonitor%_aView_#1
If View_#%Manager_aMonitor%_#%av%_aWndId = %w%
aIsBugnActive := "*"
Else
aIsBugnActive := " "
WinGetTitle, aWndTitle, ahk_id %w%
If InStr(Bar_hiddenWndIds, w)
aIsHidden := "*"
Else
aIsHidden := " "
If Manager_#%w%_isFloating
aIsFloating := "*"
Else
aIsFloating := " "
WinGet, aWndStyle, Style, ahk_id %w%
WinGetPos, aWndX, aWndY, aWndW, aWndH, ahk_id %w%
Log_bare(" " . w . "`t" . aIsBugnActive . " " . aIsFloating . " " . aIsHidden . " " aIsWinFocus . "`t" . aWndX . "`t" . aWndY . "`t" . aWndW . "`t" . aWndH . "`t" . aWndStyle . "`t" . aWndTitle)
}
Manager_logWindowList() {
Local text, v, aWndId, wndIds, aWndTitle
v := Monitor_#%Manager_aMonitor%_aView_#1
Log_msg( "Window dump for active view (" . Manager_aMonitor . ", " . v . ")" )
Log_bare( " ID`t`tA F H W`tX`tY`tW`tH`tStyle`t`tTitle")
StringTrimRight, wndIds, View_#%Manager_aMonitor%_#%v%_wndIds, 1
Loop, PARSE, wndIds, `;
{
Manager_logWindowInfo( A_LoopField )
}
}
Manager_lockWorkStation() { Manager_lockWorkStation() {
Global Config_shellMsgDelay Global Config_shellMsgDelay
@ -578,7 +536,6 @@ Manager_sync(ByRef wndIds = "") {
shownWndIds .= View_#%A_Index%_#%v%_wndIds shownWndIds .= View_#%A_Index%_#%v%_wndIds
} }
; check all visible windows against the known windows ; check all visible windows against the known windows
; DetectHiddenWindows, On
WinGet, wndId, List, , , WinGet, wndId, List, , ,
Loop, % wndId { Loop, % wndId {
If Not InStr(shownWndIds, wndId%A_Index% ";") { If Not InStr(shownWndIds, wndId%A_Index% ";") {

View file

@ -73,16 +73,16 @@ Monitor_activateView(v) {
Monitor_#%m%_aView_#1 := v Monitor_#%m%_aView_#1 := v
Manager_hideShow := True 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%
StringTrimRight, wndIds, View_#%m%_#%v%_wndIds, 1 StringTrimRight, wndIds, View_#%m%_#%v%_wndIds, 1
DetectHiddenWindows, On DetectHiddenWindows, On
View_arrange(m, v) View_arrange(m, v)
DetectHiddenWindows, Off DetectHiddenWindows, Off
Loop, PARSE, wndIds, `; Loop, PARSE, wndIds, `;
WinShow, ahk_id %A_LoopField% 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 Manager_hideShow := False
Bar_updateView(m, aView) Bar_updateView(m, aView)