summaryrefslogtreecommitdiff
path: root/src/Compositor.cpp
diff options
context:
space:
mode:
authorvaxerski <vaxry@vaxry.net>2024-01-19 16:45:34 +0100
committervaxerski <vaxry@vaxry.net>2024-01-19 16:45:34 +0100
commit17339e0ae9ad01dcfdede76e8dfaf516a8cbb924 (patch)
tree70b46f5cebf550f48bf79e8b29470404e0d545c6 /src/Compositor.cpp
parent5eeec8860e2dc8ff80dda26243778b5ecc923ca2 (diff)
input: track exclusive LSes
ref #4465
Diffstat (limited to 'src/Compositor.cpp')
-rw-r--r--src/Compositor.cpp5
1 files changed, 5 insertions, 0 deletions
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)) {