break on first button found
This commit is contained in:
parent
4f2febc1a7
commit
0bbbc7c9d5
3
widget.c
3
widget.c
|
@ -85,7 +85,10 @@ widget_common_button_press(Widget *widget, XButtonPressedEvent *ev)
|
||||||
|
|
||||||
for(b = widget->buttons; b; b = b->next)
|
for(b = widget->buttons; b; b = b->next)
|
||||||
if(ev->button == b->button && CLEANMASK(ev->state) == b->mod && b->func)
|
if(ev->button == b->button && CLEANMASK(ev->state) == b->mod && b->func)
|
||||||
|
{
|
||||||
b->func(widget->statusbar->screen, b->arg);
|
b->func(widget->statusbar->screen, b->arg);
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in New Issue