do not move unfocused windows to the desktop layer

While usually™ the window is just reset to its original layer, ensuring
to show the active window is certainly a good idea, but it's not
required to lower the fullscreen window to the desktop layer, the other
windows layer + an extra raise is entirely sufficient and it's rather
odd to see conky when activating a utility window to a video player ;-)

CCBUG: 894
This commit is contained in:
Thomas Lübking 2016-06-28 00:27:57 +02:00 committed by Mathias Gumz
parent 666e7b0337
commit 0951134ced

View file

@ -1495,7 +1495,8 @@ void FluxboxWindow::setFullscreenLayer() {
foc->winClient().transientFor()->fbwindow() == this)) {
moveToLayer(::ResourceLayer::ABOVE_DOCK);
} else {
moveToLayer(::ResourceLayer::DESKTOP);
moveToLayer(foc->layerNum());
foc->raise();
}
stateSig().emit(*this);