From: Quentin Rameau Date: Sat, 9 Jun 2018 19:53:04 +0000 (+0200) Subject: Force printing the winid when requested X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=6f6b3437213390084236f5c59b0f47eea0c5f49f;p=surf.git Force printing the winid when requested Do not wait for the libc to decide flushing buffers, force it ourselves. Thanks to koniu for reporting the issue. --- diff --git a/surf.c b/surf.c index f01a91c..a5cc5a7 100644 --- 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)