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:
parent
2ff8d44d50
commit
f0739dbe1f
2 changed files with 24 additions and 0 deletions
|
@ -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"
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue