diff options
author | markt <markt> | 2007-06-03 20:10:14 (GMT) |
---|---|---|
committer | markt <markt> | 2007-06-03 20:10:14 (GMT) |
commit | 785f5f705b2c00c4527d6b8cf4cbbb2f6d687364 (patch) | |
tree | 45cc291548211795d549856b9e91c823da7c342a /src/Ewmh.cc | |
parent | 09838bc58fb7bd60627cd3ac8cc14f358a469827 (diff) | |
download | fluxbox-785f5f705b2c00c4527d6b8cf4cbbb2f6d687364.zip fluxbox-785f5f705b2c00c4527d6b8cf4cbbb2f6d687364.tar.bz2 |
fixes a bug with rox panel flickering with mousefocus
Diffstat (limited to 'src/Ewmh.cc')
-rw-r--r-- | src/Ewmh.cc | 5 |
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 |