aboutsummaryrefslogtreecommitdiff
path: root/src/Ewmh.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Ewmh.cc')
-rw-r--r--src/Ewmh.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Ewmh.cc b/src/Ewmh.cc
index b0269ec..5c6d70b 100644
--- a/src/Ewmh.cc
+++ b/src/Ewmh.cc
@@ -1043,13 +1043,12 @@ void Ewmh::setState(FluxboxWindow &win, Atom state, bool value) {
1043 } else if (state == m_net_wm_state_below) { // bottom layer 1043 } else if (state == m_net_wm_state_below) { // bottom layer
1044 if (value) 1044 if (value)
1045 win.moveToLayer(Layer::BOTTOM); 1045 win.moveToLayer(Layer::BOTTOM);
1046 else 1046 else if (win.layerNum() > Layer::NORMAL)
1047 win.moveToLayer(Layer::NORMAL); 1047 win.moveToLayer(Layer::NORMAL);
1048
1049 } else if (state == m_net_wm_state_above) { // above layer 1048 } else if (state == m_net_wm_state_above) { // above layer
1050 if (value) 1049 if (value)
1051 win.moveToLayer(Layer::ABOVE_DOCK); 1050 win.moveToLayer(Layer::ABOVE_DOCK);
1052 else 1051 else if (win.layerNum() < Layer::NORMAL)
1053 win.moveToLayer(Layer::NORMAL); 1052 win.moveToLayer(Layer::NORMAL);
1054 } else if (state == m_net_wm_state_demands_attention) { 1053 } else if (state == m_net_wm_state_demands_attention) {
1055 if (value) { // if add attention 1054 if (value) { // if add attention