diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-04-14 18:16:09 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-04-14 18:16:09 +0200 |
| commit | ebfbd4f7c302f80032476e65937575a2d6ff0882 (patch) | |
| tree | ff11ca9e4b8ede25a374106cf805f59b25328146 /src/Compositor.cpp | |
| parent | 158af1eb090dbae7650e99878942363651c216e3 (diff) | |
fix focus not applying sometimes to the active window
Diffstat (limited to 'src/Compositor.cpp')
| -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 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) { |
