mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-10 09:01:55 -07:00
core/output: don't send enter too aggresively
sometimes this might be like 1px and send enter to the wrong output fixes #8654
This commit is contained in:
@@ -42,7 +42,7 @@ CWLOutputResource::CWLOutputResource(SP<CWlOutput> resource_, PHLMONITOR pMonito
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
for (auto& m : g_pCompositor->m_vMonitors) {
|
for (auto& m : g_pCompositor->m_vMonitors) {
|
||||||
if (!m->logicalBox().overlaps(*GEOMETRY))
|
if (!m->logicalBox().expand(-4).overlaps(*GEOMETRY))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
surf->enter(m);
|
surf->enter(m);
|
||||||
|
Reference in New Issue
Block a user