diff options
author | Ken Moore <ken@ixsystems.com> | 2017-08-25 16:10:42 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-08-25 16:10:42 -0400 |
commit | ca1234e18f6317fa9d8321c6257204b9e265d860 (patch) | |
tree | c9feb58ba04cd408e646ace64eca7d759e85a374 /src-qt5/core/libLumina/RootSubWindow.cpp | |
parent | Re-enable compositing and ensure that the window embed routines work for all ... (diff) | |
download | lumina-ca1234e18f6317fa9d8321c6257204b9e265d860.tar.gz lumina-ca1234e18f6317fa9d8321c6257204b9e265d860.tar.bz2 lumina-ca1234e18f6317fa9d8321c6257204b9e265d860.zip |
Another round of work on getting the window embed stuff cleaned up.
Now the windows are restacking properly again - just need to forward events from the frame to the window on-demand still
Diffstat (limited to 'src-qt5/core/libLumina/RootSubWindow.cpp')
-rw-r--r-- | src-qt5/core/libLumina/RootSubWindow.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src-qt5/core/libLumina/RootSubWindow.cpp b/src-qt5/core/libLumina/RootSubWindow.cpp index 6341f923..68fdde5c 100644 --- a/src-qt5/core/libLumina/RootSubWindow.cpp +++ b/src-qt5/core/libLumina/RootSubWindow.cpp @@ -294,7 +294,7 @@ void RootSubWindow::toggleSticky(){ } void RootSubWindow::activate(){ - WIN->requestProperty(NativeWindow::Active, true); + WIN->requestProperty(NativeWindow::Active, true, true); } //Mouse Interactivity @@ -394,6 +394,7 @@ void RootSubWindow::propertiesChanged(QList<NativeWindow::Property> props, QList void RootSubWindow::mousePressEvent(QMouseEvent *ev){ activate(); this->raise(); + WinWidget->raiseWindow(); //qDebug() << "Frame Mouse Press Event"; offset.setX(0); offset.setY(0); if(activeState != Normal){ return; } // do nothing - already in a state of grabbed mouse @@ -414,7 +415,7 @@ void RootSubWindow::mousePressEvent(QMouseEvent *ev){ } void RootSubWindow::mouseMoveEvent(QMouseEvent *ev){ - activate(); //make sure this window is "Active" + //activate(); //make sure this window is "Active" on mouse over if(activeState == Normal){ setMouseCursor( getStateAtPoint(ev->pos()) ); //just update the mouse cursor }else{ @@ -508,7 +509,7 @@ void RootSubWindow::mouseReleaseEvent(QMouseEvent *ev){ activeState = Normal; QApplication::restoreOverrideCursor(); setMouseCursor( getStateAtPoint(ev->pos()) ); - if(QFrame::mouseGrabber() == this){ this->releaseMouse(); } + if(QFrame::mouseGrabber() == this){ this->releaseMouse(); activate(); } } void RootSubWindow::leaveEvent(QEvent *ev){ |