diff options
Diffstat (limited to 'src/util.cpp')
-rw-r--r-- | src/util.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/util.cpp b/src/util.cpp index a8766b1..afbb578 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -158,7 +158,7 @@ void sendMessage(Display* display, Window to, Window w, char* type, * The Grand Window Analyzer. Checks if window w has a expected pid of epid * or a expected name of ename */ -bool analyzeWindow(Display *display, Window w, pid_t epid, const QString &ename) +bool analyzeWindow(Display *display, Window w, pid_t epid, const TQString &ename) { XClassHint ch; pid_t apid = pid(display, w); @@ -177,12 +177,12 @@ bool analyzeWindow(Display *display, Window w, pid_t epid, const QString &ename) // lets try the program name if (XGetClassHint(display, w, &ch)) { - if (QString(ch.res_name).find(ename, 0, FALSE) != -1) + if (TQString(ch.res_name).find(ename, 0, FALSE) != -1) { TRACE("ResName [%s] matched", ch.res_name); this_is_our_man = true; } - else if (QString(ch.res_class).find(ename, 0, FALSE) != -1) + else if (TQString(ch.res_class).find(ename, 0, FALSE) != -1) { TRACE("ResClass [%s] matched", ch.res_class); this_is_our_man = true; @@ -192,7 +192,7 @@ bool analyzeWindow(Display *display, Window w, pid_t epid, const QString &ename) // sheer desperation char *wm_name = NULL; XFetchName(display, w, &wm_name); - if (wm_name && (QString(wm_name).find(ename, 0, FALSE) != -1)) + if (wm_name && (TQString(wm_name).find(ename, 0, FALSE) != -1)) { TRACE("WM_NAME [%s] matched", wm_name); this_is_our_man = true; |