diff options
author | vaxerski <[email protected]> | 2022-08-11 20:21:55 +0200 |
---|---|---|
committer | vaxerski <[email protected]> | 2022-08-11 20:21:55 +0200 |
commit | 8fb4669b85205788198e10777d08c2b375ea12d3 (patch) | |
tree | 7dea9e50111ead0a69f91a0e910191c8a453af85 | |
parent | 008cc63dc03a31797142772885129fd32c964776 (diff) | |
download | Hyprland-8fb4669b85205788198e10777d08c2b375ea12d3.tar.gz Hyprland-8fb4669b85205788198e10777d08c2b375ea12d3.zip |
fix cyclenext on fullscreen
-rw-r--r-- | src/managers/KeybindManager.cpp | 8 |
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; |