From 6df6aea1ba4f120863ed47d61000847ccd547ac3 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Thu, 20 Oct 2022 20:37:32 +0100 Subject: [PATCH] fix swipe with fullscreen maximized --- src/managers/input/Swipe.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/managers/input/Swipe.cpp b/src/managers/input/Swipe.cpp index 619f446b..12997896 100644 --- a/src/managers/input/Swipe.cpp +++ b/src/managers/input/Swipe.cpp @@ -151,7 +151,7 @@ void CInputManager::onSwipeEnd(wlr_pointer_swipe_end_event* e) { // apply alpha for (auto& ls : g_pCompositor->m_pLastMonitor->m_aLayerSurfaceLists[ZWLR_LAYER_SHELL_V1_LAYER_TOP]) { - ls->alpha = pSwitchedTo->m_bHasFullscreenWindow ? 0.f : 255.f; + ls->alpha = pSwitchedTo->m_bHasFullscreenWindow && pSwitchedTo->m_efFullscreenMode == FULLSCREEN_FULL ? 0.f : 255.f; } }