input: track exclusive LSes

ref #4465
This commit is contained in:
vaxerski
2024-01-19 16:45:34 +01:00
parent 5eeec8860e
commit 17339e0ae9
3 changed files with 29 additions and 13 deletions

View File

@@ -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)) {