Fix problem where dragging a button makes the whole window drag.
Had to create empty mouseMoveEvent() methods. svn path=/trunk/kdebase/kwin/; revision=132837
This commit is contained in:
parent
2aa91b6f7f
commit
379b214218
3 changed files with 12 additions and 2 deletions
|
@ -58,6 +58,7 @@ class Button : public KWinInternal::KWinWidgetButton
|
|||
|
||||
void mousePressEvent(QMouseEvent *);
|
||||
void mouseReleaseEvent(QMouseEvent *);
|
||||
void mouseMoveEvent(QMouseEvent *) { /* Empty. */ }
|
||||
|
||||
void setPixmap(const QPixmap &);
|
||||
|
||||
|
|
|
@ -275,9 +275,9 @@ Manager::updateTitleBuffer()
|
|||
KWinInternal::Client::MousePosition
|
||||
Manager::mousePosition(const QPoint & p) const
|
||||
{
|
||||
MousePosition m = Center;
|
||||
MousePosition m = Nowhere;
|
||||
|
||||
// Off-by-one here ?
|
||||
// Look out for off-by-one errors here.
|
||||
|
||||
if (isResizable())
|
||||
{
|
||||
|
@ -292,6 +292,14 @@ Manager::mousePosition(const QPoint & p) const
|
|||
else
|
||||
m = Bottom;
|
||||
}
|
||||
else
|
||||
{
|
||||
m = Client::mousePosition(p);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
m = Client::mousePosition(p);
|
||||
}
|
||||
|
||||
return m;
|
||||
|
|
|
@ -59,6 +59,7 @@ namespace KWinInternal
|
|||
|
||||
void mousePressEvent(QMouseEvent *);
|
||||
void mouseReleaseEvent(QMouseEvent *);
|
||||
void mouseMoveEvent(QMouseEvent *) { /* Empty */ }
|
||||
void enterEvent(QEvent *);
|
||||
void leaveEvent(QEvent *);
|
||||
void paintEvent(QPaintEvent *);
|
||||
|
|
Loading…
Reference in a new issue