From 4a4e13f8acedd2dc44236deed13fd47096cbe508 Mon Sep 17 00:00:00 2001 From: vaxerski Date: Fri, 27 Oct 2023 12:45:14 +0100 Subject: [PATCH] events: ignore takes_over_fullscreen for floating windows fixes #3622. Floating windows should not respect the config option, they should be shown on top. That option is meant for tiled only --- src/events/Windows.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp index 89b327b0..c0910abe 100644 --- a/src/events/Windows.cpp +++ b/src/events/Windows.cpp @@ -468,7 +468,7 @@ void Events::listener_mapWindow(void* owner, void* data) { const auto PLSFROMFOCUS = g_pCompositor->getLayerSurfaceFromSurface(g_pCompositor->m_pLastFocus); if (PLSFROMFOCUS && PLSFROMFOCUS->layerSurface->current.keyboard_interactive) PWINDOW->m_bNoInitialFocus = true; - if (PWORKSPACE->m_bHasFullscreenWindow && !requestsFullscreen) { + if (PWORKSPACE->m_bHasFullscreenWindow && !requestsFullscreen && !PWINDOW->m_bIsFloating) { if (*PNEWTAKESOVERFS == 0) PWINDOW->m_bNoInitialFocus = true; else if (*PNEWTAKESOVERFS == 2)