--- xprop.c.orig 2008-03-08 09:22:32.000000000 +1100 +++ xprop.c 2008-05-30 10:37:36.000000000 +1000 @@ -1738,6 +1738,7 @@ XEvent event; const char *format, *dformat; + fflush(stdout); XSelectInput(dpy, target_win, PropertyChangeMask); for (;;) { XNextEvent(dpy, &event); @@ -1753,6 +1754,7 @@ dformat = props[i].dformat; } Show_Prop(format, dformat, Format_Atom(event.xproperty.atom)); + fflush(stdout); } } exit (0);