From 43e436facfaa62ec6f9d21d7ca524c85d4d1750d Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Fri, 16 Jan 2015 09:16:22 -0500 Subject: 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). --- lumina-desktop/LPanel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit