Support for resizing windows on the top border
svn path=/trunk/kdebase/kwin/; revision=96759
This commit is contained in:
parent
070353f3f5
commit
d4304445d5
1 changed files with 8 additions and 1 deletions
|
@ -262,6 +262,13 @@ Web::mousePosition(const QPoint & p) const
|
|||
|
||||
if (y < titleSpacer_->geometry().height())
|
||||
{
|
||||
if ((y < 4 && x < 20) || x < 4)
|
||||
return Client::TopLeft;
|
||||
else if ((y < 4 && x > width() - 20) || x > width() - 4)
|
||||
return Client::TopRight;
|
||||
else if (y < 4)
|
||||
return Client::Top;
|
||||
else
|
||||
return Client::Center;
|
||||
}
|
||||
else if (y < height() - 20)
|
||||
|
|
Loading…
Reference in a new issue