diff options
| author | Vaxry <vaxry@vaxry.net> | 2024-11-09 02:27:01 +0000 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2024-11-09 02:27:01 +0000 |
| commit | b9c439a55e5ecef563657da211bc10ddc3273a1c (patch) | |
| tree | 5f7cf4fdf4f81c1348ad904d77fe8296643ecb1c | |
| parent | 726d69782124ffb5b609c0377cd21cfd4d6f6f88 (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.cpp | 2 |
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) |
