Unify code used to execute external programs

This commit is contained in:
o9000
2017-04-29 13:42:37 +02:00
parent e32d2342a6
commit 067234e9fb
11 changed files with 130 additions and 122 deletions

View File

@@ -393,7 +393,7 @@ char *clock_get_tooltip(void *obj)
return strdup(buf_tooltip);
}
void clock_action(int button, Time time)
void clock_action(void *obj, int button, int x, int y, Time time)
{
char *command = NULL;
switch (button) {
@@ -413,5 +413,5 @@ void clock_action(int button, Time time)
command = clock_dwheel_command;
break;
}
tint_exec(command, NULL, NULL, time);
tint_exec(command, NULL, NULL, time, obj, x, y);
}