Revert "force line-buffered stdout if stdout is not a tty"
This reverts commit deb48ff48b
.
Fixes: https://github.com/djpohly/dwl/issues/253
This commit is contained in:
parent
79b051f242
commit
c60f651951
4
dwl.c
4
dwl.c
|
@ -1803,6 +1803,7 @@ printstatus(void)
|
|||
sel, urg);
|
||||
printf("%s layout %s\n", m->wlr_output->name, m->lt[m->sellt]->symbol);
|
||||
}
|
||||
fflush(stdout);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -2081,9 +2082,6 @@ setsel(struct wl_listener *listener, void *data)
|
|||
void
|
||||
setup(void)
|
||||
{
|
||||
/* Force line-buffered stdout */
|
||||
setvbuf(stdout, NULL, _IOLBF, 0);
|
||||
|
||||
/* The Wayland display is managed by libwayland. It handles accepting
|
||||
* clients from the Unix socket, manging Wayland globals, and so on. */
|
||||
dpy = wl_display_create();
|
||||
|
|
Loading…
Reference in a new issue