summaryrefslogtreecommitdiff
path: root/src/events/Layers.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2023-10-22 23:32:37 +0100
committerVaxry <vaxry@vaxry.net>2023-10-22 23:32:55 +0100
commit98059b52d759965916e0185ca35a01cc20a797b6 (patch)
treec5ac28cbbab9ddb71cbacf31fa5f9370641ece85 /src/events/Layers.cpp
parentb135bd6cd4c27a9fd94dfa084e75188463c2eb3b (diff)
layershell: support ON_DEMAND keyboard mode
fixes #2264
Diffstat (limited to 'src/events/Layers.cpp')
-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 a14ae3f9..5762e21a 100644
--- a/src/events/Layers.cpp
+++ b/src/events/Layers.cpp
@@ -142,7 +142,7 @@ void Events::listener_mapLayerSurface(void* owner, void* data) {
wlr_surface_send_enter(layersurface->layerSurface->surface, layersurface->layerSurface->output);
- const bool GRABSFOCUS = layersurface->layerSurface->current.keyboard_interactive &&
+ const bool GRABSFOCUS = layersurface->layerSurface->current.keyboard_interactive != ZWLR_LAYER_SURFACE_V1_KEYBOARD_INTERACTIVITY_NONE &&
// don't focus if constrained
(!g_pCompositor->m_sSeat.mouse || !g_pCompositor->m_sSeat.mouse->currentConstraint);