From 5bdbd7fb8525231a8e6c2acbe6a5b8926241b8ed Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Mon, 8 Aug 2016 08:47:49 -0400 Subject: Add a simple check to the panel update routine to verify that the "_NET_WM_STICKY" flag is set on the panel at update time, and re-request that flag if not. --- src-qt5/core/lumina-desktop/LPanel.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src-qt5/core/lumina-desktop/LPanel.cpp') diff --git a/src-qt5/core/lumina-desktop/LPanel.cpp b/src-qt5/core/lumina-desktop/LPanel.cpp index 0f5789ee..bf063a31 100644 --- a/src-qt5/core/lumina-desktop/LPanel.cpp +++ b/src-qt5/core/lumina-desktop/LPanel.cpp @@ -194,6 +194,9 @@ void LPanel::UpdatePanel(bool geomonly){ } } if(DEBUG){ qDebug() << " - Done with panel geometry"; } + //Double check that the "sticky" bit is set on the window state + bool needsticky = !LSession::handle()->XCB->WM_Get_Window_States(this->winId()).contains(LXCB::S_STICKY); + if(needsticky){ LSession::handle()->XCB->SetAsSticky(this->winId()); } if(geomonly){ return; } //Now update the appearance of the toolbar if(settings->value(PPREFIX+"customColor", false).toBool()){ -- cgit