From 2b888d51066b806de73da19cab2ecba5adbb653b Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Thu, 22 Dec 2022 15:03:32 +0000 Subject: [PATCH] ignore focus to empty input region ls-es --- src/Compositor.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 05958107..7fe00d3b 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -924,6 +924,9 @@ wlr_surface* CCompositor::vectorToLayerSurface(const Vector2D& pos, std::vector< } if (SURFACEAT) { + if (!pixman_region32_not_empty(&SURFACEAT->input_region)) + continue; + *ppLayerSurfaceFound = it->get(); return SURFACEAT; }