remove duplicate test
This commit is contained in:
parent
bb466a8c16
commit
4ad9cbd823
2
bar.c
2
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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user