aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-11-22 15:22:28 +0000
committerVaxry <[email protected]>2024-11-22 15:22:35 +0000
commita847bc67b1efcf3a0fa9c8a3a1da1a79743940c1 (patch)
treedbbf1b6039a785959510bab81e1bcac997cd3e54
parentb1003445953474b967464d4d0878955d37498647 (diff)
downloadHyprland-a847bc67b1efcf3a0fa9c8a3a1da1a79743940c1.tar.gz
Hyprland-a847bc67b1efcf3a0fa9c8a3a1da1a79743940c1.zip
monitor: fix default focus when switching to a fs workspace
-rw-r--r--src/helpers/Monitor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helpers/Monitor.cpp b/src/helpers/Monitor.cpp
index 9ac48220..63268c8a 100644
--- a/src/helpers/Monitor.cpp
+++ b/src/helpers/Monitor.cpp
@@ -629,7 +629,7 @@ void CMonitor::changeWorkspace(const PHLWORKSPACE& pWorkspace, bool internal, bo
if (!noFocus && !g_pCompositor->m_pLastMonitor->activeSpecialWorkspace &&
!(g_pCompositor->m_pLastWindow.lock() && g_pCompositor->m_pLastWindow->m_bPinned && g_pCompositor->m_pLastWindow->m_pMonitor == self)) {
static auto PFOLLOWMOUSE = CConfigValue<Hyprlang::INT>("input:follow_mouse");
- auto pWindow = pWorkspace->getLastFocusedWindow();
+ auto pWindow = pWorkspace->m_bHasFullscreenWindow ? g_pCompositor->getFullscreenWindowOnWorkspace(pWorkspace->m_iID) : pWorkspace->getLastFocusedWindow();
if (!pWindow) {
if (*PFOLLOWMOUSE == 1)