aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormarkt <markt>2007-06-03 20:12:20 (GMT)
committermarkt <markt>2007-06-03 20:12:20 (GMT)
commitf9c5bfec0762d831ad8f9bf8f7940b64792909b0 (patch)
tree120bb4c812f32e743859c5ba26d9c9c5e58a5a4a /src
parente6e784e20db9419287382a5293892a6a02ad5e7f (diff)
downloadfluxbox_pavel-f9c5bfec0762d831ad8f9bf8f7940b64792909b0.zip
fluxbox_pavel-f9c5bfec0762d831ad8f9bf8f7940b64792909b0.tar.bz2
fixes bug with rox panel flickering with mousefocus
Diffstat (limited to 'src')
-rw-r--r--src/Ewmh.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Ewmh.cc b/src/Ewmh.cc
index 147b7d3..fc4e3e1 100644
--- a/src/Ewmh.cc
+++ b/src/Ewmh.cc
@@ -1058,13 +1058,12 @@ void Ewmh::setState(FluxboxWindow &win, Atom state, bool value) {
1058 } else if (state == m_net_wm_state_below) { // bottom layer 1058 } else if (state == m_net_wm_state_below) { // bottom layer
1059 if (value) 1059 if (value)
1060 win.moveToLayer(Layer::BOTTOM); 1060 win.moveToLayer(Layer::BOTTOM);
1061 else 1061 else if (win.layerNum() > Layer::NORMAL)
1062 win.moveToLayer(Layer::NORMAL); 1062 win.moveToLayer(Layer::NORMAL);
1063
1064 } else if (state == m_net_wm_state_above) { // above layer 1063 } else if (state == m_net_wm_state_above) { // above layer
1065 if (value) 1064 if (value)
1066 win.moveToLayer(Layer::ABOVE_DOCK); 1065 win.moveToLayer(Layer::ABOVE_DOCK);
1067 else 1066 else if (win.layerNum() < Layer::NORMAL)
1068 win.moveToLayer(Layer::NORMAL); 1067 win.moveToLayer(Layer::NORMAL);
1069 } else if (state == m_net_wm_state_demands_attention) { 1068 } else if (state == m_net_wm_state_demands_attention) {
1070 if (value) { // if add attention 1069 if (value) { // if add attention