From a74ed42f170a19f772351107c4d639be2d27d26b Mon Sep 17 00:00:00 2001 From: Matthias Ettrich Date: Tue, 17 Oct 2000 15:55:40 +0000 Subject: [PATCH] make "doNotManage" work with regular expressions as advertised. Otherwise, kstart does not work properly (see thread on kde-devel) svn path=/trunk/kdebase/kwin/; revision=68106 --- workspace.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/workspace.cpp b/workspace.cpp index 83197cb791..a6ba98639d 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -12,6 +12,7 @@ Copyright (C) 1999, 2000 Matthias Ettrich #include #include #include +#include #include #include #include @@ -1547,7 +1548,8 @@ void Workspace::doNotManage( QString title ) bool Workspace::isNotManaged( const QString& title ) { for ( QStringList::Iterator it = doNotManageList.begin(); it != doNotManageList.end(); ++it ) { - if ( (*it) == title ) { + QRegExp r( (*it) ); + if (r.match(title) != -1) { doNotManageList.remove( it ); return TRUE; }