From 17339e0ae9ad01dcfdede76e8dfaf516a8cbb924 Mon Sep 17 00:00:00 2001 From: vaxerski Date: Fri, 19 Jan 2024 16:45:34 +0100 Subject: input: track exclusive LSes ref #4465 --- src/Compositor.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/Compositor.cpp') diff --git a/src/Compositor.cpp b/src/Compositor.cpp index c6ac224a..085590b9 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -948,6 +948,11 @@ void CCompositor::focusWindow(CWindow* pWindow, wlr_surface* pSurface) { return; } + if (!g_pInputManager->m_dExclusiveLSes.empty()) { + Debug::log(LOG, "Refusing a keyboard focus to a window because of an exclusive ls"); + return; + } + g_pLayoutManager->getCurrentLayout()->bringWindowToTop(pWindow); if (!pWindow || !windowValidMapped(pWindow)) { -- cgit v1.2.3