mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-20 03:35:41 +02:00
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 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;
|
||||
|
|
Loading…
Add table
Reference in a new issue