summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-12-09 08:46:22 -0600
committerLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-12-09 08:46:22 -0600
commitc60f65195186e6c72ec66ba7f10139a420a595a0 (patch)
tree17bc3570162c9c3d7ad9293db05b7d6792019016
parent79b051f2425af8a1e91a61fba145beb00f522973 (diff)
Revert "force line-buffered stdout if stdout is not a tty"
This reverts commit deb48ff48b186ff77a7e9d3b3ab724ff4c3c340f. Fixes: https://github.com/djpohly/dwl/issues/253
-rw-r--r--dwl.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/dwl.c b/dwl.c
index 9ee3c76..2f7f2bf 100644
--- a/dwl.c
+++ b/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();