Fix closebutton not being clickable by moving the mouse to the corner in
maximized mode. svn path=/trunk/KDE/kdebase/workspace/; revision=726270
This commit is contained in:
parent
65fabe9b98
commit
3180c8c0b6
1 changed files with 7 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue