diff --git a/src/backend/wayland/wl_backend.c b/src/backend/wayland/wl_backend.c index 2534807..6b05e96 100644 --- a/src/backend/wayland/wl_backend.c +++ b/src/backend/wayland/wl_backend.c @@ -3966,7 +3966,7 @@ frame_buf_button_at(int px, int py) wl_list_for_each(fb, &wl_state.frame_list, link) { if (!fb->parent_id) continue; /* top-level root */ if (!fb->scene_buf) continue; /* no scene node */ - if (fb->scene_buf->buffer) continue; /* has active pixels — titlebar/resizebar */ + if (fb->scene_buf->node.enabled) continue; /* visible node — titlebar/resizebar */ 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. */