From 3b0df3af1676b55b62f3ca7f1c80311f27a61d05 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Wed, 22 Apr 2015 20:47:09 -0400 Subject: 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. --- lumina-desktop/LPanel.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lumina-desktop') 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 } -- cgit