Found the correct method to send mousepresses to kwin. I still miss the
mouserelease, though. svn path=/trunk/kdebase/kwin/; revision=252930
This commit is contained in:
parent
3b502ae558
commit
ef476127f8
1 changed files with 1 additions and 4 deletions
|
@ -331,8 +331,7 @@ void B2Titlebar::mousePressEvent( QMouseEvent * e )
|
||||||
}
|
}
|
||||||
QMouseEvent _e(QEvent::MouseButtonPress, mapToParent(e->pos()),
|
QMouseEvent _e(QEvent::MouseButtonPress, mapToParent(e->pos()),
|
||||||
e->globalPos(), e->button(), e->state());
|
e->globalPos(), e->button(), e->state());
|
||||||
//client->widget()->mousePressEvent(&_e);
|
client->processMousePressEvent(&_e);
|
||||||
QWidget::mousePressEvent(&_e);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void B2Titlebar::mouseReleaseEvent( QMouseEvent * e )
|
void B2Titlebar::mouseReleaseEvent( QMouseEvent * e )
|
||||||
|
@ -341,7 +340,6 @@ void B2Titlebar::mouseReleaseEvent( QMouseEvent * e )
|
||||||
QMouseEvent _e(QEvent::MouseButtonRelease, mapToParent(e->pos()),
|
QMouseEvent _e(QEvent::MouseButtonRelease, mapToParent(e->pos()),
|
||||||
e->globalPos(), e->button(), e->state());
|
e->globalPos(), e->button(), e->state());
|
||||||
//client->widget()->mouseReleaseEvent(&_e);
|
//client->widget()->mouseReleaseEvent(&_e);
|
||||||
QWidget::mouseReleaseEvent(&_e);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void B2Titlebar::mouseMoveEvent( QMouseEvent * e )
|
void B2Titlebar::mouseMoveEvent( QMouseEvent * e )
|
||||||
|
@ -357,7 +355,6 @@ void B2Titlebar::mouseMoveEvent( QMouseEvent * e )
|
||||||
QMouseEvent _e(QEvent::MouseMove, mapToParent(e->pos()),
|
QMouseEvent _e(QEvent::MouseMove, mapToParent(e->pos()),
|
||||||
e->globalPos(), e->button(), e->state());
|
e->globalPos(), e->button(), e->state());
|
||||||
//client->widget()->mouseMoveEvent( &_e);
|
//client->widget()->mouseMoveEvent( &_e);
|
||||||
QWidget::mouseMoveEvent(&_e);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue