Close standard output after printing XID, patch due Abby Cedar.

This commit is contained in:
Troels Henriksen 2012-02-21 12:00:01 +01:00
parent 6af15aa636
commit 96041e5ba2
1 changed files with 3 additions and 0 deletions

3
surf.c
View File

@ -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;
}