aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/managers/input/Swipe.cpp
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2022-10-20 20:37:32 +0100
committervaxerski <[email protected]>2022-10-20 20:37:37 +0100
commit6df6aea1ba4f120863ed47d61000847ccd547ac3 (patch)
tree512defb3121adb02a5382b1c0316d12fa3fb239e /src/managers/input/Swipe.cpp
parentca2d2db0efd7e9cbbc61321c591b732c851db61a (diff)
downloadHyprland-6df6aea1ba4f120863ed47d61000847ccd547ac3.tar.gz
Hyprland-6df6aea1ba4f120863ed47d61000847ccd547ac3.zip
fix swipe with fullscreen maximized
Diffstat (limited to 'src/managers/input/Swipe.cpp')
-rw-r--r--src/managers/input/Swipe.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}
}