aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/lumina-desktop/LPanel.cpp
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2016-08-08 08:47:49 -0400
committerKen Moore <ken@pcbsd.org>2016-08-08 08:47:49 -0400
commit5bdbd7fb8525231a8e6c2acbe6a5b8926241b8ed (patch)
tree7f10c373a7e1e007fa55c0ea246d3501f269c875 /src-qt5/core/lumina-desktop/LPanel.cpp
parentuse a static_cast from signed->unsigned integer in LuminaX11.cpp to silence a... (diff)
downloadlumina-5bdbd7fb8525231a8e6c2acbe6a5b8926241b8ed.tar.gz
lumina-5bdbd7fb8525231a8e6c2acbe6a5b8926241b8ed.tar.bz2
lumina-5bdbd7fb8525231a8e6c2acbe6a5b8926241b8ed.zip
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.
Diffstat (limited to 'src-qt5/core/lumina-desktop/LPanel.cpp')
-rw-r--r--src-qt5/core/lumina-desktop/LPanel.cpp3
1 files changed, 3 insertions, 0 deletions
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()){
bgstack15