Reverting resize-at-top by malte. Sorry, but this is how I want the
style to be. I don't like styles that let you resize by the top edge. I want to be able to throw the mouse to the screen top or corners and hit the buttons or the titlebar so I can iconify, close or move the window. svn path=/trunk/kdebase/kwin/; revision=97774
This commit is contained in:
parent
8a597cc22e
commit
678a95dad2
1 changed files with 4 additions and 0 deletions
|
@ -260,6 +260,9 @@ Web::mousePosition(const QPoint & p) const
|
|||
|
||||
if (y < titleSpacer_->geometry().height())
|
||||
{
|
||||
// rikkus: this style is not designed to be resizable at the top edge.
|
||||
|
||||
#if 0
|
||||
if ((y < 4 && x < 20) || x < 4)
|
||||
return Client::TopLeft;
|
||||
else if ((y < 4 && x > width() - 20) || x > width() - 4)
|
||||
|
@ -267,6 +270,7 @@ Web::mousePosition(const QPoint & p) const
|
|||
else if (y < 4)
|
||||
return Client::Top;
|
||||
else
|
||||
#endif
|
||||
return Client::Center;
|
||||
}
|
||||
else if (y < height() - 20)
|
||||
|
|
Loading…
Reference in a new issue