]> Dogcows Code - chaz/openbox/commitdiff
if a dock has the 'below' state set, then it goes in the normal window layer
authorDana Jansens <danakj@orodu.net>
Sat, 4 Jan 2003 08:54:53 +0000 (08:54 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 4 Jan 2003 08:54:53 +0000 (08:54 +0000)
src/client.cc

index d87f334dde09dbc0064d9e4a058cc1e3f17dd0d0..2bb157806bce3ac5d26980e48958d68ea245bfab 100644 (file)
@@ -315,9 +315,12 @@ void OBClient::getShaped()
 
 void OBClient::calcLayer() {
   if (_iconic) _layer = OBScreen::Layer_Icon;
-  else if (_type == Type_Desktop) _layer = OBScreen::Layer_Desktop;
-  else if (_type == Type_Dock) _layer = OBScreen::Layer_Top;
   else if (_fullscreen) _layer = OBScreen::Layer_Fullscreen;
+  else if (_type == Type_Desktop) _layer = OBScreen::Layer_Desktop;
+  else if (_type == Type_Dock) {
+    if (!_below) _layer = OBScreen::Layer_Top;
+    else _layer = OBScreen::Layer_Normal;
+  }
   else if (_above) _layer = OBScreen::Layer_Above;
   else if (_below) _layer = OBScreen::Layer_Below;
   else _layer = OBScreen::Layer_Normal;
This page took 0.023455 seconds and 4 git commands to generate.