Skip to content

Commit

Permalink
keybinds: fix movefocus fallback for special workspaces (hyprwm#9040)
Browse files Browse the repository at this point in the history
  • Loading branch information
alyanser authored and Alexandr Krylov committed Jan 13, 2025
1 parent 35879ae commit b03a778
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/managers/KeybindManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1535,7 +1535,8 @@ SDispatchResult CKeybindManager::moveFocusTo(std::string args) {
break;
}

const auto PWINDOWCANDIDATE = g_pCompositor->getWindowInDirection(box, PMONITOR->activeWorkspace, arg, PLASTWINDOW, PLASTWINDOW->m_bIsFloating);
const auto PWINDOWCANDIDATE = g_pCompositor->getWindowInDirection(box, PMONITOR->activeSpecialWorkspace ? PMONITOR->activeSpecialWorkspace : PMONITOR->activeWorkspace, arg,
PLASTWINDOW, PLASTWINDOW->m_bIsFloating);
if (PWINDOWCANDIDATE)
switchToWindow(PWINDOWCANDIDATE);

Expand Down

0 comments on commit b03a778

Please sign in to comment.