From 4f70ab6df5ebdb5bed54a1e62c4a78c612518ae9 Mon Sep 17 00:00:00 2001 From: Ollie Date: Sat, 23 May 2026 19:20:18 +0200 Subject: [PATCH] wl_backend: fix resizebar click detection frame_buf_button_at had a size threshold (width>30 || height>30) that skipped resizebar frame_bufs during hit-testing. The resizebar is wide but short (~8px), so it was always skipped. Clicks in the resizebar area fell through to the parent frame, preventing resize. Remove the size threshold. The smallest-area heuristic already ensures buttons (small) are preferred over resizebars (large) when both match. --- src/backend/wayland/wl_backend.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/backend/wayland/wl_backend.c b/src/backend/wayland/wl_backend.c index 4f0ed6b..f095ad1 100644 --- a/src/backend/wayland/wl_backend.c +++ b/src/backend/wayland/wl_backend.c @@ -3991,7 +3991,6 @@ frame_buf_button_at(int px, int py) if (!fb->scene_buf) continue; /* no scene node */ /* Buttons are small children of the titlebar with enabled scene_bufs. * Skip large nodes (titlebars, resizebars) by size threshold. */ - if (fb->width > 30 || fb->height > 30) continue; if (px < fb->x || px >= fb->x + fb->width) continue; if (py < fb->y || py >= fb->y + fb->height) continue; /* Prefer the smallest (most specific) enclosing fb. */