keybinds: restore pointer warp on switch

ref https://github.com/hyprwm/Hyprland/pull/12033#pullrequestreview-3516413924
This commit is contained in:
Vaxry 2025-11-27 21:09:54 +00:00
parent e42185b83d
commit f9742ab501
No known key found for this signature in database
GPG key ID: 665806380871D640

View file

@ -396,7 +396,7 @@ void CKeybindManager::switchToWindow(PHLWINDOW PWINDOWTOCHANGETO, bool preserveF
// remove constraints
g_pInputManager->unconstrainMouse();
if (PLASTWINDOW && PLASTWINDOW->m_workspace == PWINDOWTOCHANGETO->m_workspace)
if (PLASTWINDOW && PLASTWINDOW->m_workspace == PWINDOWTOCHANGETO->m_workspace && PLASTWINDOW->isFullscreen())
Desktop::focusState()->fullWindowFocus(PWINDOWTOCHANGETO, nullptr, preserveFocusHistory, forceFSCycle);
else {
updateRelativeCursorCoords();