Added DragController::enableFallbackMouseGrabber()

So it's easier to test the fallback mouse grabber
This commit is contained in:
Sergio Martins
2020-10-03 18:37:26 +01:00
parent 3fb723a82f
commit 543f734650
2 changed files with 9 additions and 0 deletions

View File

@@ -364,6 +364,12 @@ FloatingWindow *DragController::windowBeingDragged() const
: nullptr;
}
void DragController::enableFallbackMouseGrabber()
{
if (!m_fallbackMouseGrabber)
m_fallbackMouseGrabber = new FallbackMouseGrabber(this);
}
static QMouseEvent *mouseEvent(QEvent *e)
{
switch (e->type()) {