From 0951134cedd15e456e638b029497669c51bd36a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Tue, 28 Jun 2016 00:27:57 +0200 Subject: do not move unfocused windows to the desktop layer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/Window.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Window.cc b/src/Window.cc index a053f1a..51f5d44 100644 --- a/src/Window.cc +++ b/src/Window.cc @@ -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); -- cgit v0.11.2