X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=surf.c;h=27cc4e945a6d531c56fbf2333630ec3c6bf59bca;hb=96041e5ba2e19a077cb8aead03899c0b1eef529a;hp=154957d48e435df5313f158fa652d51b9d4ff159;hpb=6af15aa636ae72f1cbd89ed93ea1e5b0c9ddfa02;p=surf.git diff --git a/surf.c b/surf.c index 154957d..27cc4e9 100644 --- a/surf.c +++ b/surf.c @@ -548,6 +548,9 @@ newclient(void) { gdk_display_sync(gtk_widget_get_display(c->win)); printf("%u\n", (guint)GDK_WINDOW_XID(GTK_WIDGET(c->win)->window)); fflush(NULL); + if (fclose(stdout) != 0) { + die("Error closing stdout"); + } } return c; }