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:
Vaxry 2024-12-10 01:40:31 +00:00
parent 0a27af8cd1
commit bb5c3f2702

View file

@ -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);