removed from relic code from kde-look times, that 1/ was intended to work with compiz 2/ is useless with kwin 3/ is obsoleted by compiz0.8.3

svn path=/trunk/KDE/kdebase/workspace/; revision=1021691
This commit is contained in:
Hugo Pereira Da Costa 2009-09-09 20:11:05 +00:00
parent 2fcb5767d5
commit 2371de7ac2
2 changed files with 1 additions and 18 deletions

View file

@ -44,8 +44,7 @@ namespace Nitrogen
//_____________________________________________
NitrogenSizeGrip::NitrogenSizeGrip( NitrogenClient* client ):
QWidget( client->widget() ),
client_( client ),
decoration_offset_( false )
client_( client )
{
setAttribute(Qt::WA_NoSystemBackground );
@ -103,12 +102,6 @@ namespace Nitrogen
else break;
}
// if the current window is the window_id
// (i.e. if the client is top-level)
// the decoration_offset_ flag is set to true, meaning that decoration borders
// are taken into account when placing the widget.
decoration_offset_ = ( current == window_id );
// reparent
XReparentWindow( QX11Info::display(), winId(), current, 0, 0 );
@ -225,13 +218,6 @@ namespace Nitrogen
client().layoutMetric( NitrogenClient::LM_BorderBottom )
);
} else if( decoration_offset_ ) {
// not sure whether this case still happens or not
position -= QPoint(
client().layoutMetric( NitrogenClient::LM_BorderLeft )+client().layoutMetric( NitrogenClient::LM_BorderRight ),
client().layoutMetric( NitrogenClient::LM_TitleHeight )+client().layoutMetric( NitrogenClient::LM_TitleEdgeTop )+client().layoutMetric( NitrogenClient::LM_TitleEdgeBottom )+client().layoutMetric( NitrogenClient::LM_BorderBottom ) );
} else {
position -= QPoint(

View file

@ -92,9 +92,6 @@ namespace Nitrogen
// nitrogen client
NitrogenClient* client_;
//! true when decoration offset must be accounted for when moving the widget
bool decoration_offset_;
};