replace stray '\t's with spaces

This commit is contained in:
2024-02-22 00:01:44 -05:00
parent f6475ab4ce
commit edf61ca3c0

22
wiz.c
View File

@ -75,20 +75,20 @@ static const struct wl_registry_listener reglistener = {
static void static void
idling(void *data, struct ext_idle_notification_v1 *notif) idling(void *data, struct ext_idle_notification_v1 *notif)
{ {
struct Events *event = data; struct Events *event = data;
run(event->idlecmd); run(event->idlecmd);
} }
static void static void
resuming(void *data, struct ext_idle_notification_v1 *notif) resuming(void *data, struct ext_idle_notification_v1 *notif)
{ {
struct Events *event = data; struct Events *event = data;
run(event->resumecmd); run(event->resumecmd);
} }
static const struct ext_idle_notification_v1_listener idlelistener = { static const struct ext_idle_notification_v1_listener idlelistener = {
.idled = idling, .idled = idling,
.resumed = resuming, .resumed = resuming,
}; };
static void static void
@ -97,12 +97,12 @@ run(char **cmd)
waitpid(-1, NULL, WNOHANG); waitpid(-1, NULL, WNOHANG);
if (killchild && cpid) if (killchild && cpid)
kill(cpid, SIGINT); kill(cpid, SIGINT);
if ((cpid = fork()) == 0) { if ((cpid = fork()) == 0) {
dup2(STDERR_FILENO, STDOUT_FILENO); dup2(STDERR_FILENO, STDOUT_FILENO);
setsid(); setsid();
execvp(cmd[0], cmd); execvp(cmd[0], cmd);
die("execvp failed:"); die("execvp failed:");
} }
} }
int int
@ -140,7 +140,7 @@ main(int argc, char *argv[])
} }
wl_display_roundtrip(display); wl_display_roundtrip(display);
while (wl_display_dispatch(display) != -1); while (wl_display_dispatch(display) != -1);
ext_idle_notifier_v1_destroy(notifier); ext_idle_notifier_v1_destroy(notifier);
wl_registry_destroy(registry); wl_registry_destroy(registry);