From 06e5b5b960d1ff9291536698239d09bdcf7d5abf Mon Sep 17 00:00:00 2001 From: Sandro Giessl Date: Sat, 26 Mar 2005 22:52:18 +0000 Subject: [PATCH] revert the recent change which introduced button masking as it breaks Fitt's Law.. svn path=/trunk/kdebase/kwin/; revision=400875 --- clients/plastik/plastikbutton.cpp | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/clients/plastik/plastikbutton.cpp b/clients/plastik/plastikbutton.cpp index a43def8f15..ccc6302f91 100644 --- a/clients/plastik/plastikbutton.cpp +++ b/clients/plastik/plastikbutton.cpp @@ -112,14 +112,6 @@ void PlastikButton::reset(unsigned long changed) break; } - // button mask - if (type() != MenuButton) { - QRegion mask(rect() ); - mask -= QRegion(0,0,1,1) + QRegion(0,height()-1,1,1) + - QRegion(width()-1,0,1,1) + QRegion(width()-1,height()-1,1,1); - setMask(mask); - } - this->update(); } } @@ -208,11 +200,8 @@ void PlastikButton::drawButton(QPainter *painter) buffer.resize(width(), height()); QPainter bP(&buffer); - if (type() == MenuButton) - { - // fake the titlebar background - bP.drawTiledPixmap(0, 0, width(), width(), m_client->getTitleBarTile(active) ); - } + // fake the titlebar background + bP.drawTiledPixmap(0, 0, width(), width(), m_client->getTitleBarTile(active) ); if (type() != MenuButton || hover || animProgress != 0) { // contour