From ebfbd4f7c302f80032476e65937575a2d6ff0882 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Thu, 14 Apr 2022 18:16:09 +0200 Subject: [PATCH] fix focus not applying sometimes to the active window --- src/Compositor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 2f1746c9..45e2444b 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -366,7 +366,7 @@ void CCompositor::focusWindow(CWindow* pWindow, wlr_surface* pSurface) { return; } - if (m_pLastWindow == pWindow) + if (m_pLastWindow == pWindow && m_sSeat.seat->keyboard_state.focused_surface == pSurface) return; if (windowValidMapped(m_pLastWindow) && m_pLastWindow->m_bIsX11) {