From dff7f0ec18f4114fa6deb2d442572c9557d8c7c6 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Thu, 8 Jan 2015 08:15:09 -0500 Subject: Set the "Does not accept focus" Qt flag on the base Lumina Panel window. --- lumina-desktop/LPanel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lumina-desktop') diff --git a/lumina-desktop/LPanel.cpp b/lumina-desktop/LPanel.cpp index 8caaa8e9..6a4c55d8 100644 --- a/lumina-desktop/LPanel.cpp +++ b/lumina-desktop/LPanel.cpp @@ -31,7 +31,7 @@ LPanel::LPanel(QSettings *file, int scr, int num, QWidget *parent) : QWidget(){ qDebug() << " -- Setup Panel"; this->setContentsMargins(0,0,0,0); this->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); - this->setWindowFlags(Qt::Tool | Qt::WindowStaysOnTopHint | Qt::FramelessWindowHint ); + this->setWindowFlags(Qt::Tool | Qt::WindowStaysOnTopHint | Qt::FramelessWindowHint | Qt::WindowDoesNotAcceptFocus); this->setWindowTitle(""); this->setObjectName("LuminaPanelWidget"); @@ -43,7 +43,7 @@ LPanel::LPanel(QSettings *file, int scr, int num, QWidget *parent) : QWidget(){ panelArea->setLayout(layout); //Set special window flags on the panel for proper usage this->show(); - this->setFocusPolicy(Qt::NoFocus); + //this->setFocusPolicy(Qt::NoFocus); //panels cannot get keyboard focus otherwise it upsets the task manager window detection this->setAttribute(Qt::WA_X11DoNotAcceptFocus); this->setAttribute(Qt::WA_X11NetWmWindowTypeDock); -- cgit