aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/LPanel.cpp
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2015-04-22 20:47:09 -0400
committerKen Moore <ken@pcbsd.org>2015-04-22 20:47:09 -0400
commit3b0df3af1676b55b62f3ca7f1c80311f27a61d05 (patch)
treeb152804ecd23ecff00634d15379f802db15aecd6 /lumina-desktop/LPanel.cpp
parentFix a bug where the clicking on the currently-active window on the taskmanage... (diff)
downloadlumina-3b0df3af1676b55b62f3ca7f1c80311f27a61d05.tar.gz
lumina-3b0df3af1676b55b62f3ca7f1c80311f27a61d05.tar.bz2
lumina-3b0df3af1676b55b62f3ca7f1c80311f27a61d05.zip
Setup the Lumina panel with mouse tracking, and activate the window when the mouse goes on top of it to prevent possible double-clicks from being necessary to interact with some buttons/tray apps.
Diffstat (limited to 'lumina-desktop/LPanel.cpp')
-rw-r--r--lumina-desktop/LPanel.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lumina-desktop/LPanel.cpp b/lumina-desktop/LPanel.cpp
index 1f59ba8b..d5be8670 100644
--- a/lumina-desktop/LPanel.cpp
+++ b/lumina-desktop/LPanel.cpp
@@ -12,6 +12,7 @@
LPanel::LPanel(QSettings *file, int scr, int num, QWidget *parent) : QWidget(){
//Take care of inputs
+ this->setMouseTracking(true);
if(DEBUG){ qDebug() << " - Creating Panel:" << scr << num; }
bgWindow = parent; //save for later
//Setup the widget overlay for the entire panel to provide transparency effects
@@ -283,6 +284,7 @@ void LPanel::enterEvent(QEvent *event){
//Move the panel out so it is fully available
this->move(showpoint);
}
+ this->activateWindow();
event->accept(); //just to quiet the compile warning
}
bgstack15