fixes bug with rox panel flickering with mousefocus

This commit is contained in:
markt 2007-06-03 20:12:20 +00:00
parent e6e784e20d
commit f9c5bfec07
2 changed files with 6 additions and 3 deletions

View file

@ -1,5 +1,9 @@
(Format: Year/Month/Day)
Changes for 1.0.0:
*07/06/03:
* Only change layer to normal when removing _NET_WM_STATE_{ABOVE,BELOW} if
the window is actually above/below the normal layer (thanks Jim Ramsay)
Ewmh.cc
*07/06/01:
* Fixed infinite loop caused by removing the last workspace when it contains
windows (Mark)

View file

@ -1058,13 +1058,12 @@ void Ewmh::setState(FluxboxWindow &win, Atom state, bool value) {
} else if (state == m_net_wm_state_below) { // bottom layer
if (value)
win.moveToLayer(Layer::BOTTOM);
else
else if (win.layerNum() > Layer::NORMAL)
win.moveToLayer(Layer::NORMAL);
} else if (state == m_net_wm_state_above) { // above layer
if (value)
win.moveToLayer(Layer::ABOVE_DOCK);
else
else if (win.layerNum() < Layer::NORMAL)
win.moveToLayer(Layer::NORMAL);
} else if (state == m_net_wm_state_demands_attention) {
if (value) { // if add attention