summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-09-29 22:16:37 +0100
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-09-29 22:16:43 +0100
commit2d73da1a79fc32bca62da6e9b79b8525ec42fa9c (patch)
tree1fe316083bee8529b7521d24a277b395088e9892 /src
parent45fe185cb9865e7da9f6c7fb8c7f497dfb029e50 (diff)
enter outputs for non-interactive ls-es too
Diffstat (limited to 'src')
-rw-r--r--src/events/Layers.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/events/Layers.cpp b/src/events/Layers.cpp
index 975f2d20..daa69fce 100644
--- a/src/events/Layers.cpp
+++ b/src/events/Layers.cpp
@@ -133,8 +133,9 @@ void Events::listener_mapLayerSurface(void* owner, void* data) {
g_pHyprRenderer->arrangeLayersForMonitor(PMONITOR->ID);
+ wlr_surface_send_enter(layersurface->layerSurface->surface, layersurface->layerSurface->output);
+
if (layersurface->layerSurface->current.keyboard_interactive && (!g_pCompositor->m_sSeat.mouse || !g_pCompositor->m_sSeat.mouse->currentConstraint)) { // don't focus if constrained
- wlr_surface_send_enter(layersurface->layerSurface->surface, layersurface->layerSurface->output);
g_pCompositor->focusSurface(layersurface->layerSurface->surface);
const auto LOCAL = g_pInputManager->getMouseCoordsInternal() - Vector2D(layersurface->geometry.x + PMONITOR->vecPosition.x, layersurface->geometry.y + PMONITOR->vecPosition.y);