From 9f43aaa1e1090a03836522bf3cc30debf3c0ba35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Sat, 11 Jul 2009 16:33:46 +0000 Subject: [PATCH] Don't paint deco on other screen when window is maximized svn path=/trunk/KDE/kdebase/workspace/; revision=994960 --- clients/aurorae/src/aurorae.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/clients/aurorae/src/aurorae.cpp b/clients/aurorae/src/aurorae.cpp index a4ce175661..536cc0a208 100644 --- a/clients/aurorae/src/aurorae.cpp +++ b/clients/aurorae/src/aurorae.cpp @@ -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(),