diff --git a/bar.c b/bar.c index 5b6f18f..3da875d 100644 --- a/bar.c +++ b/bar.c @@ -1204,7 +1204,7 @@ main (int argc, char **argv) { area_t *area = area_get(press_ev->event, press_ev->detail, press_ev->event_x); // Respond to the click - if (area && area->button == press_ev->detail) { + if (area) { write(STDOUT_FILENO, area->cmd, strlen(area->cmd)); write(STDOUT_FILENO, "\n", 1); }