diff options
author | Ken Moore <ken@ixsystems.com> | 2017-07-21 09:09:29 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-07-21 09:09:29 -0400 |
commit | 21476cff5d19115466725aeb70cc5b2772768b67 (patch) | |
tree | 2c7c4594e1f560575790cc257f57c3872d5f4d0f /src-qt5/core/libLumina/RootSubWindow.cpp | |
parent | Get the compositing and window interactions all cleaned up. Seems to work gre... (diff) | |
download | lumina-21476cff5d19115466725aeb70cc5b2772768b67.tar.gz lumina-21476cff5d19115466725aeb70cc5b2772768b67.tar.bz2 lumina-21476cff5d19115466725aeb70cc5b2772768b67.zip |
Now all the compositing is finished - fixed the last couple painting issues.
Diffstat (limited to 'src-qt5/core/libLumina/RootSubWindow.cpp')
-rw-r--r-- | src-qt5/core/libLumina/RootSubWindow.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src-qt5/core/libLumina/RootSubWindow.cpp b/src-qt5/core/libLumina/RootSubWindow.cpp index 46599003..c2da8aef 100644 --- a/src-qt5/core/libLumina/RootSubWindow.cpp +++ b/src-qt5/core/libLumina/RootSubWindow.cpp @@ -305,7 +305,7 @@ void RootSubWindow::startMoving(){ activeState = Move; offset = this->mapFromGlobal(curpt); setMouseCursor(activeState, true); //this one is an override cursor - WinWidget->pause(); + //WinWidget->pause(); //Also need to capture the mouse this->grabMouse(); } @@ -392,7 +392,8 @@ void RootSubWindow::mousePressEvent(QMouseEvent *ev){ activeState = getStateAtPoint(ev->pos(), true); //also have it set the offset variable } setMouseCursor(activeState, true); //this one is an override cursor - if(activeState!=Normal){WinWidget->pause(); } + //if(activeState!=Normal){WinWidget->pause(); } + if(activeState!=Normal && activeState!=Move){WinWidget->pause(); } QFrame::mousePressEvent(ev); } @@ -487,6 +488,7 @@ void RootSubWindow::mouseReleaseEvent(QMouseEvent *ev){ return; } if(activeState!=Normal){ WinWidget->resume(); } + if(activeState!=Normal && activeState!=Move){WinWidget->resume(); } activeState = Normal; QApplication::restoreOverrideCursor(); setMouseCursor( getStateAtPoint(ev->pos()) ); |