Support for resizing windows on the top border

svn path=/trunk/kdebase/kwin/; revision=96759
This commit is contained in:
Malte Starostik 2001-05-13 06:58:29 +00:00
parent 070353f3f5
commit d4304445d5

View file

@ -262,7 +262,14 @@ Web::mousePosition(const QPoint & p) const
if (y < titleSpacer_->geometry().height())
{
return Client::Center;
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)
{