From 3180c8c0b6127091cdaa216b024759c56e181113 Mon Sep 17 00:00:00 2001 From: Casper Boemann Date: Wed, 17 Oct 2007 11:50:34 +0000 Subject: [PATCH] Fix closebutton not being clickable by moving the mouse to the corner in maximized mode. svn path=/trunk/KDE/kdebase/workspace/; revision=726270 --- clients/oxygen/oxygenclient.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/clients/oxygen/oxygenclient.cpp b/clients/oxygen/oxygenclient.cpp index 1fa012700d..de2dfcb76f 100644 --- a/clients/oxygen/oxygenclient.cpp +++ b/clients/oxygen/oxygenclient.cpp @@ -306,9 +306,16 @@ void OxygenClient::paintEvent(QPaintEvent *e) void OxygenClient::doShape() { + bool maximized = maximizeMode()==MaximizeFull && !options()->moveResizeMaximizedWindows(); int r=widget()->width(); int b=widget()->height(); QRegion mask(0,0,r,b); + + if(maximized) { + setMask(mask); + return; + } + // Remove top-left corner. mask -= QRegion(0, 0, 3, 1); mask -= QRegion(0, 1, 1, 1);