diff --git a/src/Compositor.cpp b/src/Compositor.cpp index fbbfd7e77d7..a1d07696935 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -1389,9 +1389,6 @@ void CCompositor::changeWindowZOrder(PHLWINDOW pWindow, bool top) { if (!validMapped(pWindow)) return; - if (pWindow == (top ? m_vWindows.back() : m_vWindows.front())) - return; - auto moveToZ = [&](PHLWINDOW pw, bool top) -> void { if (top) { for (auto it = m_vWindows.begin(); it != m_vWindows.end(); ++it) {