From b2b86e00e9c243ce2cb7500c23da2e027c5babad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Mon, 15 Dec 2003 13:36:27 +0000 Subject: [PATCH] Remove duplicated and scary code. svn path=/trunk/kdebase/kwin/; revision=273128 --- manage.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/manage.cpp b/manage.cpp index ed92c7a1dc..e00363f3f7 100644 --- a/manage.cpp +++ b/manage.cpp @@ -217,16 +217,7 @@ bool Client::manage( Window w, bool isMapped ) ; // force using placement policy else { - - bool ignorePPosition = false; - XClassHint classHint; // APICLEAN tohle je zduplikovane seshora - if ( XGetClassHint(qt_xdisplay(), window(), &classHint) != 0 ) - { - if ( classHint.res_class ) - ignorePPosition = ( options->ignorePositionClasses.find(QString::fromLatin1(classHint.res_class)) != options->ignorePositionClasses.end() ); - XFree(classHint.res_name); - XFree(classHint.res_class); - } + bool ignorePPosition = ( options->ignorePositionClasses.contains(QString::fromLatin1(resourceClass()))); if ((xSizeHint.flags & PPosition) && ! ignorePPosition) {