From f9742ab50156468c4a62dcc3895233b7d9c04e2b Mon Sep 17 00:00:00 2001 From: Vaxry Date: Thu, 27 Nov 2025 21:09:54 +0000 Subject: [PATCH] keybinds: restore pointer warp on switch ref https://github.com/hyprwm/Hyprland/pull/12033#pullrequestreview-3516413924 --- src/managers/KeybindManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index 2fd7ba99..4423bbdb 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -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();