From e27084eb8018167857f32063bcacd6a0ca485d4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Thu, 10 Jun 2004 12:34:20 +0000 Subject: [PATCH] Reverse order of resource name and resource class in WM_CLASS in order to match what xprop says. svn path=/trunk/kdebase/kwin/; revision=319366 --- rules.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules.cpp b/rules.cpp index c995000926..e04b2c60e3 100644 --- a/rules.cpp +++ b/rules.cpp @@ -219,7 +219,7 @@ bool WindowRules::match( const Client* c ) const if( !wmclass.isEmpty()) { // TODO optimize? QCString cwmclass = wmclasscomplete - ? c->resourceClass() + ' ' + c->resourceName() : c->resourceClass(); + ? c->resourceName() + ' ' + c->resourceClass() : c->resourceClass(); if( wmclassregexp && !QRegExp( wmclass ).exactMatch( cwmclass )) return false; if( !wmclassregexp && wmclass != cwmclass )