diff options
author | vaxerski <[email protected]> | 2022-07-11 22:51:20 +0200 |
---|---|---|
committer | vaxerski <[email protected]> | 2022-07-11 22:51:20 +0200 |
commit | 676e4c36c53c991f6950a0c51fbe7b41ee9a4db2 (patch) | |
tree | e62d3ba1638b7736aa64a7e1b957217793661605 | |
parent | ad66c158ba793c424519eaee0a64fb81860f5e3c (diff) | |
download | Hyprland-676e4c36c53c991f6950a0c51fbe7b41ee9a4db2.tar.gz Hyprland-676e4c36c53c991f6950a0c51fbe7b41ee9a4db2.zip |
fix focus on layers when constrained
-rw-r--r-- | src/events/Layers.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/events/Layers.cpp b/src/events/Layers.cpp index 9c4daeac..45f20870 100644 --- a/src/events/Layers.cpp +++ b/src/events/Layers.cpp @@ -118,7 +118,7 @@ void Events::listener_mapLayerSurface(void* owner, void* data) { g_pHyprRenderer->arrangeLayersForMonitor(PMONITOR->ID); - if (layersurface->layerSurface->current.keyboard_interactive) + if (layersurface->layerSurface->current.keyboard_interactive && (!g_pCompositor->m_sSeat.mouse || !g_pCompositor->m_sSeat.mouse->currentConstraint)) // don't focus if constrained g_pCompositor->focusSurface(layersurface->layerSurface->surface); // mouse enter always, keeb only when needed |