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

@@ -437,7 +437,7 @@ char *battery_get_tooltip(void *obj)
return battery_os_tooltip();
}
void battery_action(int button, Time time)
void battery_action(void *obj, int button, int x, int y, Time time)
{
char *command = NULL;
switch (button) {
@@ -457,5 +457,5 @@ void battery_action(int button, Time time)
command = battery_dwheel_command;
break;
}
tint_exec(command, NULL, NULL, time);
tint_exec(command, NULL, NULL, time, obj, x, y);
}