From 0bbbc7c9d543ec2d311628d86f62c6aa33c93acb Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Wed, 23 Jan 2008 08:47:46 +0100 Subject: [PATCH] break on first button found --- widget.c | 3 +++ 1 file changed, 3 insertions(+) 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