Close standard output after printing XID, patch due Abby Cedar.
This commit is contained in:
parent
6af15aa636
commit
96041e5ba2
1 changed files with 3 additions and 0 deletions
3
surf.c
3
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue