forked from external/yambar
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:
parent
530afe6cf5
commit
46e6539b1a
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue