adding fflush()
authorEnno Boland (tox) <tox@s01.de>
Mon, 7 Sep 2009 22:00:43 +0000 (00:00 +0200)
committerEnno Boland (tox) <tox@s01.de>
Mon, 7 Sep 2009 22:00:43 +0000 (00:00 +0200)
surf.c

diff --git a/surf.c b/surf.c
index b739acd..139c25b 100644 (file)
--- a/surf.c
+++ b/surf.c
@@ -444,8 +444,10 @@ newclient(void) {
        c->title = NULL;
        c->next = clients;
        clients = c;
-       if(showxid)
+       if(showxid) {
                printf("%u\n", (guint)GDK_WINDOW_XID(GTK_WIDGET(c->win)->window));
+               fflush(NULL);
+       }
        return c;
 }