diff --git a/widget.c b/widget.c index dfec2092..1c967499 100644 --- a/widget.c +++ b/widget.c @@ -85,7 +85,10 @@ widget_common_button_press(Widget *widget, XButtonPressedEvent *ev) for(b = widget->buttons; b; b = b->next) if(ev->button == b->button && CLEANMASK(ev->state) == b->mod && b->func) + { b->func(widget->statusbar->screen, b->arg); + break; + } } static void