From 46e6539b1ad81743b30b0fc9984d29e99b46b791 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Wed, 23 Jun 2021 10:58:28 +0200 Subject: [PATCH] particle/list: call default handler on motion events if we a have click handler This ensures the cursor changes shape correctly --- particles/list.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/particles/list.c b/particles/list.c index 43bd3be..9f03231 100644 --- a/particles/list.c +++ b/particles/list.c @@ -80,7 +80,10 @@ on_mouse(struct exposable *exposable, struct bar *bar, const struct particle *p = exposable->particle; const struct eprivate *e = exposable->private; - if (exposable->on_click[btn] != NULL) { + if ((event == ON_MOUSE_MOTION && + exposable->particle->have_on_click_template) || + exposable->on_click[btn] != NULL) + { /* We have our own handler */ exposable_default_on_mouse(exposable, bar, event, btn, x, y); return;