particle/list: call default handler on motion events if we a have click handler

This ensures the cursor changes shape correctly
This commit is contained in:
Daniel Eklöf 2021-06-23 10:58:28 +02:00
parent 530afe6cf5
commit 46e6539b1a
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -80,7 +80,10 @@ on_mouse(struct exposable *exposable, struct bar *bar,
const struct particle *p = exposable->particle; const struct particle *p = exposable->particle;
const struct eprivate *e = exposable->private; 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 */ /* We have our own handler */
exposable_default_on_mouse(exposable, bar, event, btn, x, y); exposable_default_on_mouse(exposable, bar, event, btn, x, y);
return; return;