summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2023-05-12 01:07:46 +0100
committervaxerski <43317083+vaxerski@users.noreply.github.com>2023-05-12 01:07:46 +0100
commit86ef85efaec16a20816d64d4c6aff34c01c0c9b7 (patch)
treeb7f900f4f3692fed9d514df8c62e950c0910e736 /src
parenta4833765910100fdfb6a83b209d010a8ac9da0ed (diff)
layershell: don't enter on unmapped ls
Diffstat (limited to 'src')
-rw-r--r--src/events/Layers.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/events/Layers.cpp b/src/events/Layers.cpp
index 32c58f5d..88f9a70b 100644
--- a/src/events/Layers.cpp
+++ b/src/events/Layers.cpp
@@ -325,7 +325,7 @@ void Events::listener_commitLayerSurface(void* owner, void* data) {
if (layersurface->layerSurface->current.keyboard_interactive &&
(!g_pCompositor->m_sSeat.mouse || !g_pCompositor->m_sSeat.mouse->currentConstraint) // don't focus if constrained
- && !layersurface->keyboardExclusive) {
+ && !layersurface->keyboardExclusive && layersurface->mapped) {
g_pCompositor->focusSurface(layersurface->layerSurface->surface);
const auto LOCAL =