From ed31dec9bfad211c68e3ef1c9aa524e7f14f3063 Mon Sep 17 00:00:00 2001 From: joten Date: Wed, 3 Oct 2012 20:21:02 +0200 Subject: [PATCH] moved the string identifying a hung (ghost) window to the config The german window title is different from the english one. --- src/Config.ahk | 3 ++- src/Manager.ahk | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Config.ahk b/src/Config.ahk index cc3b780..15ee91e 100644 --- a/src/Config.ahk +++ b/src/Config.ahk @@ -64,9 +64,10 @@ Config_init() Config_layoutAxis_#3 := 2 Config_layoutGapWidth := 0 Config_layoutMFactor := 0.6 + Config_ghostWndSubString := " (Not Responding)" Config_mouseFollowsFocus := True - Config_onActiveHiddenWnds := "view" Config_newWndPosition := "top" + Config_onActiveHiddenWnds := "view" Config_shellMsgDelay := 350 Config_syncMonitorViews := 0 Config_viewFollowsTagged := False diff --git a/src/Manager.ahk b/src/Manager.ahk index a438679..6da5fbb 100644 --- a/src/Manager.ahk +++ b/src/Manager.ahk @@ -829,7 +829,7 @@ Manager_isHung(wndId) { Manager_findHung( ghostWnd ) { Local expectedTitle, expectedX, expectedY, expectedW, expectedH, wndTitle, wndX, wndY, wndW, wndH, wndIds WinGetTitle, expectedTitle, ahk_id %ghostWnd% - StringReplace, expectedTitle, expectedTitle, " (Not Responding)", "" + StringReplace, expectedTitle, expectedTitle, %Config_ghostWndSubString%, WinGetPos, expectedX, expectedY, expectedW, expectedH, ahk_id %ghostWnd% SetTitleMatchMode, 2