aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/LPanel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lumina-desktop/LPanel.cpp')
-rw-r--r--lumina-desktop/LPanel.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lumina-desktop/LPanel.cpp b/lumina-desktop/LPanel.cpp
index c899ff16..a3b0fc43 100644
--- a/lumina-desktop/LPanel.cpp
+++ b/lumina-desktop/LPanel.cpp
@@ -335,7 +335,8 @@ void LPanel::leaveEvent(QEvent *event){
if( !this->geometry().contains(QCursor::pos()) ){
//Move the panel back to it's "hiding" spot
if(hidden){ this->move(hidepoint); }
- if(tmpID!=0){ LSession::handle()->XCB->ActivateWindow(tmpID); }
+ //Only re-activate the old window if the panel is still currently active
+ if(tmpID!=0 && (this->winId()==LSession::handle()->XCB->ActiveWindow()) ){ LSession::handle()->XCB->ActivateWindow(tmpID); }
tmpID = 0;
}
bgstack15