aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Compositor.cpp
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-11-09 02:27:01 +0000
committerVaxry <[email protected]>2024-11-09 02:27:01 +0000
commitb9c439a55e5ecef563657da211bc10ddc3273a1c (patch)
tree5f7cf4fdf4f81c1348ad904d77fe8296643ecb1c /src/Compositor.cpp
parent726d69782124ffb5b609c0377cd21cfd4d6f6f88 (diff)
downloadHyprland-b9c439a55e5ecef563657da211bc10ddc3273a1c.tar.gz
Hyprland-b9c439a55e5ecef563657da211bc10ddc3273a1c.zip
compositor: make sure we don't ret early on no surface
if there is no implicit surface passed, make sure the current focus is not null, otherwise we nope early without focusing the window fixes #8293
Diffstat (limited to 'src/Compositor.cpp')
-rw-r--r--src/Compositor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp
index 495a2d85..da20c5cf 100644
--- a/src/Compositor.cpp
+++ b/src/Compositor.cpp
@@ -1062,7 +1062,7 @@ void CCompositor::focusWindow(PHLWINDOW pWindow, SP<CWLSurfaceResource> pSurface
return;
}
- if (m_pLastWindow.lock() == pWindow && g_pSeatManager->state.keyboardFocus == pSurface)
+ if (m_pLastWindow.lock() == pWindow && g_pSeatManager->state.keyboardFocus == pSurface && g_pSeatManager->state.keyboardFocus)
return;
if (pWindow->m_bPinned)