Added a chrome browser rule

+ fixed a typo
This commit is contained in:
joten 2015-02-05 20:57:59 +01:00
parent 90fa564d92
commit 07a080c4ca
3 changed files with 11 additions and 9 deletions

View file

@ -90,11 +90,12 @@ Config_init() {
Config_rule_#9 := "CabinetWClass;.*;;1;0;0;0;1;0;"
Config_rule_#10 := "OperationStatusWindow;.*;;0;0;0;1;1;0;"
Config_rule_#11 := "Chrome_WidgetWin_1;.*;;1;0;0;0;1;0;"
Config_rule_#12 := "Chrome_WidgetWin_1;.*;Window_isPopup;0;0;0;1;1;1;"
Config_rule_#13 := "IEFrame;.*Internet Explorer;;1;0;0;0;1;0;"
Config_rule_#14 := "MozillaWindowClass;.*Mozilla Firefox;;1;0;0;0;1;0;"
Config_rule_#15 := "MozillaDialogClass;.*;;1;0;0;1;1;0;"
Config_ruleCount := 15 ;; This variable has to be set to the total number of active rules above.
Config_rule_#12 := "Chrome_WidgetWin_1;.*;Window_isPopup;0;0;0;1;1;0;"
Config_rule_#13 := "Chrome_RenderWidgetHostHWND;.*;;0;0;0;1;1;0;"
Config_rule_#14 := "IEFrame;.*Internet Explorer;;1;0;0;0;1;0;"
Config_rule_#15 := "MozillaWindowClass;.*Mozilla Firefox;;1;0;0;0;1;0;"
Config_rule_#16 := "MozillaDialogClass;.*;;1;0;0;1;1;0;"
Config_ruleCount := 16 ;; This variable has to be set to the total number of active rules above.
;; Configuration management
Config_autoSaveSession := "auto" ;; "off" | "auto" | "ask"

View file

@ -127,6 +127,7 @@ Manager_applyRules(wndId, ByRef isManaged, ByRef m, ByRef tags, ByRef isFloating
Break
}
}
Debug_logMessage("DEBUG[6] Manager_applyRules: class: " wndClass ", title: " wndTitle ", wndId: " wndId ", action: " action, 6)
} Else {
isManaged := False
If wndTitle
@ -891,7 +892,7 @@ Manager_saveWindowState(filename, nm, nv) {
FileMove, %tmpfname%, %filename%, 1
}
Manager_serCursor(wndId) {
Manager_setCursor(wndId) {
Local wndHeight, wndWidth, wndX, wndY
If Config_mouseFollowsFocus {
@ -1140,7 +1141,7 @@ Manager_unmanage(wndId) {
}
Manager_winActivate(wndId) {
Manager_serCursor(wndId)
Manager_setCursor(wndId)
Debug_logMessage("DEBUG[1] Activating window: " wndId, 1)
If Not wndId {
If (A_OSVersion = "WIN_8")

View file

@ -193,7 +193,7 @@ View_moveWindow(i=0, d=0) {
i := Manager_loop(Window_#%aWndId%_area, d, 1, View_#%m%_#%v%_area_#0)
Window_move(aWndId, View_#%m%_#%v%_area_#%i%_x, View_#%m%_#%v%_area_#%i%_y, View_#%m%_#%v%_area_#%i%_width, View_#%m%_#%v%_area_#%i%_height)
Window_#%aWndId%_area := i
Manager_serCursor(aWndId)
Manager_setCursor(aWndId)
}
}
@ -283,7 +283,7 @@ View_shuffleWindow(i, d = 0) {
StringReplace, View_#%Manager_aMonitor%_#%v%_wndIds, View_#%Manager_aMonitor%_#%v%_wndIds, % aWndId ";",
StringReplace, View_#%Manager_aMonitor%_#%v%_wndIds, View_#%Manager_aMonitor%_#%v%_wndIds, % View_tiledWndId%i% ";", %replace%
View_arrange(Manager_aMonitor, v)
Manager_serCursor(aWndId)
Manager_setCursor(aWndId)
}
}
}