Close standard output after printing XID, patch due Abby Cedar.
This commit is contained in:
parent
6af15aa636
commit
96041e5ba2
3
surf.c
3
surf.c
|
@ -548,6 +548,9 @@ newclient(void) {
|
||||||
gdk_display_sync(gtk_widget_get_display(c->win));
|
gdk_display_sync(gtk_widget_get_display(c->win));
|
||||||
printf("%u\n", (guint)GDK_WINDOW_XID(GTK_WIDGET(c->win)->window));
|
printf("%u\n", (guint)GDK_WINDOW_XID(GTK_WIDGET(c->win)->window));
|
||||||
fflush(NULL);
|
fflush(NULL);
|
||||||
|
if (fclose(stdout) != 0) {
|
||||||
|
die("Error closing stdout");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue