From 4ad9cbd823e229b8af262ccf707889ce8b97eb03 Mon Sep 17 00:00:00 2001 From: Otto Modinos Date: Fri, 16 Jan 2015 23:15:00 +0200 Subject: [PATCH] remove duplicate test --- bar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }