Skip to content

Commit

Permalink
enter outputs for non-interactive ls-es too
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Sep 29, 2022
1 parent 45fe185 commit 2d73da1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/events/Layers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2d73da1

Please sign in to comment.