Remove duplicated and scary code.
svn path=/trunk/kdebase/kwin/; revision=273128
This commit is contained in:
parent
f4b4647fc3
commit
b2b86e00e9
1 changed files with 1 additions and 10 deletions
11
manage.cpp
11
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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue