Oh, forgot to check this stuff in. Fixes mouse position detection on

bottom resize bar.

svn path=/trunk/kdebase/kwin/; revision=64974
This commit is contained in:
Rik Hemsley 2000-09-24 10:28:06 +00:00
parent 2ff8d44d50
commit f0739dbe1f
2 changed files with 24 additions and 0 deletions

View file

@ -347,4 +347,25 @@ void NextClient::activeChange(bool)
button[2]->reset();
}
Client::MousePosition
NextClient::mousePosition( const QPoint& p ) const
{
MousePosition m = Nowhere;
if (p.y() < (height() - 6))
m = Client::mousePosition(p);
else {
if (p.x() >= (width() - 25))
m = BottomRight;
else if (p.x() <= 25)
m = BottomLeft;
else
m = Bottom;
}
return m;
}
#include "nextclient.moc"

View file

@ -40,6 +40,9 @@ protected:
void captionChange( const QString& name );
void stickyChange(bool on);
void activeChange(bool);
MousePosition mousePosition(const QPoint &) const;
protected slots:
void slotReset();
private: