mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-25 12:25:59 +01:00
switch to using window->middle()
This commit is contained in:
parent
1b0b11e209
commit
d6e850d3f5
1 changed files with 1 additions and 1 deletions
|
@ -775,7 +775,7 @@ void CKeybindManager::changeworkspace(std::string args) {
|
|||
|
||||
g_pCompositor->focusWindow(PNEWWINDOW);
|
||||
if (PNEWWINDOW)
|
||||
g_pCompositor->warpCursorTo(PNEWWINDOW->m_vRealPosition.goalv() + PNEWWINDOW->m_vRealSize.goalv() / 2.f);
|
||||
g_pCompositor->warpCursorTo(PNEWWINDOW->middle());
|
||||
else
|
||||
g_pCompositor->warpCursorTo(PMONITORWORKSPACEOWNER->vecPosition + PMONITORWORKSPACEOWNER->vecSize / 2.f);
|
||||
|
||||
|
|
Loading…
Reference in a new issue