replace stray '\t's with spaces
This commit is contained in:
22
wiz.c
22
wiz.c
@ -75,20 +75,20 @@ static const struct wl_registry_listener reglistener = {
|
||||
static void
|
||||
idling(void *data, struct ext_idle_notification_v1 *notif)
|
||||
{
|
||||
struct Events *event = data;
|
||||
struct Events *event = data;
|
||||
run(event->idlecmd);
|
||||
}
|
||||
|
||||
static void
|
||||
resuming(void *data, struct ext_idle_notification_v1 *notif)
|
||||
{
|
||||
struct Events *event = data;
|
||||
struct Events *event = data;
|
||||
run(event->resumecmd);
|
||||
}
|
||||
|
||||
static const struct ext_idle_notification_v1_listener idlelistener = {
|
||||
.idled = idling,
|
||||
.resumed = resuming,
|
||||
.idled = idling,
|
||||
.resumed = resuming,
|
||||
};
|
||||
|
||||
static void
|
||||
@ -97,12 +97,12 @@ run(char **cmd)
|
||||
waitpid(-1, NULL, WNOHANG);
|
||||
if (killchild && cpid)
|
||||
kill(cpid, SIGINT);
|
||||
if ((cpid = fork()) == 0) {
|
||||
dup2(STDERR_FILENO, STDOUT_FILENO);
|
||||
setsid();
|
||||
execvp(cmd[0], cmd);
|
||||
die("execvp failed:");
|
||||
}
|
||||
if ((cpid = fork()) == 0) {
|
||||
dup2(STDERR_FILENO, STDOUT_FILENO);
|
||||
setsid();
|
||||
execvp(cmd[0], cmd);
|
||||
die("execvp failed:");
|
||||
}
|
||||
}
|
||||
|
||||
int
|
||||
@ -140,7 +140,7 @@ main(int argc, char *argv[])
|
||||
}
|
||||
wl_display_roundtrip(display);
|
||||
|
||||
while (wl_display_dispatch(display) != -1);
|
||||
while (wl_display_dispatch(display) != -1);
|
||||
|
||||
ext_idle_notifier_v1_destroy(notifier);
|
||||
wl_registry_destroy(registry);
|
||||
|
Reference in New Issue
Block a user