From aef2ab758da67369e365c8d59c6242fa58b9e5b2 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 4 Jan 2003 08:54:53 +0000 Subject: [PATCH] if a dock has the 'below' state set, then it goes in the normal window layer --- src/client.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/client.cc b/src/client.cc index d87f334d..2bb15780 100644 --- a/src/client.cc +++ b/src/client.cc @@ -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; -- 2.45.2