Added DragController::enableFallbackMouseGrabber()
So it's easier to test the fallback mouse grabber
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user