Don't paint deco on other screen when window is maximized

svn path=/trunk/KDE/kdebase/workspace/; revision=994960
This commit is contained in:
Martin Gräßlin 2009-07-11 16:33:46 +00:00
parent dbbdba2589
commit 9f43aaa1e1

View file

@ -654,6 +654,11 @@ void AuroraeClient::paintEvent(QPaintEvent *event)
frame->setEnabledBorders(Plasma::FrameSvg::AllBorders);
}
QRectF rect = QRectF(0.0, 0.0, widget()->width(), widget()->height());
if (maximized) {
rect = QRectF(conf.paddingLeft(), conf.paddingTop(),
widget()->width() - conf.paddingRight(),
widget()->height() - conf.paddingBottom());
}
QRectF sourceRect = rect;
if (!compositingActive()) {
rect = QRectF(conf.paddingLeft(), conf.paddingTop(),