Force printing the winid when requested
authorQuentin Rameau <quinq@fifth.space>
Sat, 9 Jun 2018 19:53:04 +0000 (21:53 +0200)
committerQuentin Rameau <quinq@fifth.space>
Sat, 9 Jun 2018 19:55:20 +0000 (21:55 +0200)
Do not wait for the libc to decide flushing buffers, force it ourselves.

Thanks to koniu for reporting the issue.

surf.c

diff --git a/surf.c b/surf.c
index f01a91c..a5cc5a7 100644 (file)
--- a/surf.c
+++ b/surf.c
@@ -1315,6 +1315,7 @@ showview(WebKitWebView *v, Client *c)
        if (showxid) {
                gdk_display_sync(gtk_widget_get_display(c->win));
                puts(winid);
+               fflush(stdout);
        }
 
        if (curconfig[HideBackground].val.i)