summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornags <nags@nags-desktop.(none)>2009-11-27 14:24:20 -0800
committernags <nags@nags-desktop.(none)>2009-11-27 14:24:20 -0800
commitd9b5dad0477e597b377b5e3f1d7c9033eb6041da (patch)
tree76287e487620e98c4979ff3908a73974962f5175
parent5c4907a464bc14b362600b760aa360f33d169291 (diff)
Fixes bug # 603118
-rw-r--r--python/ldtputils.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/python/ldtputils.py b/python/ldtputils.py
index 79f0a52..69b0825 100644
--- a/python/ldtputils.py
+++ b/python/ldtputils.py
@@ -243,8 +243,9 @@ def _wnckFunction(wnckFunctionName, windowName = None):
if windowName:
_currentWindow = w.get_name()
if re.search(fnmatch.translate(windowName), _currentWindow, re.I) or \
- re.search(fnmatch.translate(windowName),
- re.sub(" *\t*\n*", "", _currentWindow), re.I):
+ re.search(fnmatch.translate(re.sub("(^frm)|(^dlg)", "",
+ windowName)),
+ re.sub(" *(\t*)|(\n*)", "", _currentWindow), re.I):
if wnckFunctionName not in dir(w):
break
function = getattr(w, wnckFunctionName)