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
This commit is contained in:
Luboš Luňák 2004-06-10 12:34:20 +00:00
parent 45bdac8953
commit e27084eb80

View file

@ -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 )