aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2022-08-11 20:21:55 +0200
committervaxerski <[email protected]>2022-08-11 20:21:55 +0200
commit8fb4669b85205788198e10777d08c2b375ea12d3 (patch)
tree7dea9e50111ead0a69f91a0e910191c8a453af85
parent008cc63dc03a31797142772885129fd32c964776 (diff)
downloadHyprland-8fb4669b85205788198e10777d08c2b375ea12d3.tar.gz
Hyprland-8fb4669b85205788198e10777d08c2b375ea12d3.zip
fix cyclenext on fullscreen
-rw-r--r--src/managers/KeybindManager.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp
index 7fb260c3..feb217e3 100644
--- a/src/managers/KeybindManager.cpp
+++ b/src/managers/KeybindManager.cpp
@@ -1256,12 +1256,10 @@ void CKeybindManager::circleNext(std::string arg) {
if (!g_pCompositor->windowValidMapped(g_pCompositor->m_pLastWindow))
return;
- const auto PWORKSPACE = g_pCompositor->getWorkspaceByID(g_pCompositor->m_pLastWindow->m_iWorkspaceID);
-
- if (PWORKSPACE->m_bHasFullscreenWindow)
- return;
-
auto switchToWindow = [&](CWindow* PWINDOWTOCHANGETO) {
+ if (PWINDOWTOCHANGETO == g_pCompositor->m_pLastWindow)
+ return;
+
if (g_pCompositor->m_pLastWindow->m_iWorkspaceID == PWINDOWTOCHANGETO->m_iWorkspaceID && g_pCompositor->m_pLastWindow->m_bIsFullscreen) {
const auto PWORKSPACE = g_pCompositor->getWorkspaceByID(g_pCompositor->m_pLastWindow->m_iWorkspaceID);
const auto FSMODE = PWORKSPACE->m_efFullscreenMode;