diff options
author | Vaxry <[email protected]> | 2024-12-10 01:40:31 +0000 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-12-10 01:40:35 +0000 |
commit | bb5c3f27023e0702642b72d1869427b9b0ff72e0 (patch) | |
tree | ec33c82fdf6a2691509dbab1edcfd1b4478a36ac /src | |
parent | 0a27af8cd190315c1f13363ebd11e83d30455d48 (diff) | |
download | Hyprland-bb5c3f27023e0702642b72d1869427b9b0ff72e0.tar.gz Hyprland-bb5c3f27023e0702642b72d1869427b9b0ff72e0.zip |
core/output: don't send enter too aggresively
sometimes this might be like 1px and send enter to the wrong output
fixes #8654
Diffstat (limited to 'src')
-rw-r--r-- | src/protocols/core/Output.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocols/core/Output.cpp b/src/protocols/core/Output.cpp index edeeb584..db580457 100644 --- a/src/protocols/core/Output.cpp +++ b/src/protocols/core/Output.cpp @@ -42,7 +42,7 @@ CWLOutputResource::CWLOutputResource(SP<CWlOutput> resource_, PHLMONITOR pMonito return; for (auto& m : g_pCompositor->m_vMonitors) { - if (!m->logicalBox().overlaps(*GEOMETRY)) + if (!m->logicalBox().expand(-4).overlaps(*GEOMETRY)) continue; surf->enter(m); |