summaryrefslogtreecommitdiff
path: root/src/events/Windows.cpp
diff options
context:
space:
mode:
authorvaxerski <vaxry@vaxry.net>2023-10-27 12:45:14 +0100
committervaxerski <vaxry@vaxry.net>2023-10-27 12:45:17 +0100
commit4a4e13f8acedd2dc44236deed13fd47096cbe508 (patch)
treea2a3adb28901a49644ab583dd7000c4ab154e56a /src/events/Windows.cpp
parent1d47e2c4088b74961fdc59aba558d84f4751fed1 (diff)
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
Diffstat (limited to 'src/events/Windows.cpp')
-rw-r--r--src/events/Windows.cpp2
1 files changed, 1 insertions, 1 deletions
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)