mirror of
https://github.com/hyprwm/Hyprland
synced 2026-05-07 04:18:03 +02:00
fix tiling only selection: actually select only tiling when chosen
This commit is contained in:
parent
eff3bfe261
commit
57c4814f70
1 changed files with 12 additions and 4 deletions
|
|
@ -1664,11 +1664,19 @@ ActionResult Actions::cycleNext(const bool next, std::optional<bool> onlyTiled,
|
|||
}
|
||||
}
|
||||
|
||||
std::optional<bool> floatStatus = {};
|
||||
if (onlyFloating.value_or(false))
|
||||
floatStatus = true;
|
||||
|
||||
const auto& cycled = g_pCompositor->getWindowCycle(window, true, floatStatus, false, !next, window->m_workspace && window->m_workspace->m_hasFullscreenWindow);
|
||||
|
||||
|
||||
// true = floating
|
||||
// false = tiling
|
||||
// either-or = either-or
|
||||
std::optional<bool> tileOrFloatOnly = std::nullopt;
|
||||
|
||||
if (onlyTiled.value_or(false) != onlyFloating.value_or(false))
|
||||
tileOrFloatOnly = onlyFloating.value_or(false);
|
||||
|
||||
|
||||
const auto& cycled = g_pCompositor->getWindowCycle(window, true, tileOrFloatOnly, false, !next, window->m_workspace && window->m_workspace->m_hasFullscreenWindow);
|
||||
|
||||
switchToWindow(cycled);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue