summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-11-09 02:27:01 +0000
committerVaxry <vaxry@vaxry.net>2024-11-09 02:27:01 +0000
commitb9c439a55e5ecef563657da211bc10ddc3273a1c (patch)
tree5f7cf4fdf4f81c1348ad904d77fe8296643ecb1c
parent726d69782124ffb5b609c0377cd21cfd4d6f6f88 (diff)
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
-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)