mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-27 13:29:49 +01:00
set last monitor on move focus dispatcher
This commit is contained in:
parent
bdd20c401d
commit
20c050e890
1 changed files with 1 additions and 0 deletions
|
@ -896,6 +896,7 @@ void CKeybindManager::moveFocusTo(std::string args) {
|
|||
g_pCompositor->focusWindow(PWINDOWTOCHANGETO);
|
||||
Vector2D middle = PWINDOWTOCHANGETO->m_vRealPosition.goalv() + PWINDOWTOCHANGETO->m_vRealSize.goalv() / 2.f;
|
||||
g_pCompositor->warpCursorTo(middle);
|
||||
g_pCompositor->m_pLastMonitor = g_pCompositor->getMonitorFromID(PWINDOWTOCHANGETO->m_iMonitorID); // update last monitor
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue