From b9f3db77d47fd8b1a3830368d95cd522abdee1d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Mon, 20 Feb 2006 16:18:18 +0000 Subject: [PATCH] Dump the hack that tries to guess partial xinerama-aware struts from the old ones. svn path=/trunk/KDE/kdebase/workspace/; revision=511660 --- geometry.cpp | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/geometry.cpp b/geometry.cpp index 031313415e..86fe05c5ec 100644 --- a/geometry.cpp +++ b/geometry.cpp @@ -727,37 +727,6 @@ QRect Client::adjustedClientArea( const QRect &desktopArea, const QRect& area ) str . bottom_end - str . bottom_start + 1, str . bottom_width); - NETExtendedStrut ext = info->extendedStrut(); - if( ext.left_width == 0 && ext.right_width == 0 && ext.top_width == 0 && ext.bottom_width == 0 - && ( str.left_width != 0 || str.right_width != 0 || str.top_width != 0 || str.bottom_width != 0 )) { - - // hack, might cause problems... this tries to guess the start/end of a - // non-extended strut; only works on windows that have exact same - // geometry as their strut (ie, if the geometry fits the width - // exactly, we will adjust length of strut to match the geometry as well; - // otherwise we use the full-edge strut) - - if (stareaT.top() == geometry().top() && stareaT.bottom() == geometry().bottom()) { - stareaT.setLeft(geometry().left()); - stareaT.setRight(geometry().right()); -// kDebug () << "Trimming top-strut to geometry() to: " << stareaT << endl; - } - if (stareaB.top() == geometry().top() && stareaB.bottom() == geometry().bottom()) { - stareaB.setLeft(geometry().left()); - stareaB.setRight(geometry().right()); -// kDebug () << "Trimming bottom-strut to geometry(): " << stareaB << endl; - } - if (stareaL.left() == geometry().left() && stareaL.right() == geometry().right()) { - stareaL.setTop(geometry().top()); - stareaL.setBottom(geometry().bottom()); -// kDebug () << "Trimming left-strut to geometry(): " << stareaL << endl; - } - if (stareaR.left() == geometry().left() && stareaR.right() == geometry().right()) { - stareaR.setTop(geometry().top()); - stareaR.setBottom(geometry().bottom()); -// kDebug () << "Trimming right-strut to geometry(): " << stareaR << endl; - } - } if (stareaL . intersects (area)) { // kDebug () << "Moving left of: " << r << " to " << stareaL.right() + 1 << endl; r . setLeft( stareaL . right() + 1 );