aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2015-01-16 09:16:22 -0500
committerKen Moore <ken@pcbsd.org>2015-01-16 09:16:22 -0500
commit43e436facfaa62ec6f9d21d7ca524c85d4d1750d (patch)
tree13bac451a3d653f83df42ca26fd22e0cdc028164
parentFix a bug with removing desktop plugins. (diff)
downloadlumina-43e436facfaa62ec6f9d21d7ca524c85d4d1750d.tar.gz
lumina-43e436facfaa62ec6f9d21d7ca524c85d4d1750d.tar.bz2
lumina-43e436facfaa62ec6f9d21d7ca524c85d4d1750d.zip
Quick fix for auto-hidden panels. Ensure that the mouse is actually outside the panel area, don't just rely on the event notification (Qt treats the system tray as a "foreign" window and send leave event anyway).
-rw-r--r--lumina-desktop/LPanel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lumina-desktop/LPanel.cpp b/lumina-desktop/LPanel.cpp
index 6a4c55d8..8cdcffa8 100644
--- a/lumina-desktop/LPanel.cpp
+++ b/lumina-desktop/LPanel.cpp
@@ -261,7 +261,7 @@ void LPanel::enterEvent(QEvent *event){
void LPanel::leaveEvent(QEvent *event){
//qDebug() << "Panel Leave Event:";
- if(hidden){
+ if(hidden && !this->geometry().contains( this->mapFromGlobal(QCursor::pos()) ) ){
//Move the panel back to it's "hiding" spot
this->move(hidepoint);
}
bgstack15