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.
This commit is contained in:
Quentin Rameau 2018-06-09 21:53:04 +02:00
commit 6f6b343721

1
surf.c
View file

@ -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)