summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeale Pickett <neale@woozle.org>2008-11-26 17:28:56 -0800
committerAlan Coopersmith <alan.coopersmith@sun.com>2008-11-26 17:28:56 -0800
commit9271b26d991608b562960aa041b0c371086cc490 (patch)
treeab42528b7c81d2a83820a625ff415e77d8d21066
parent3c139c58b5c2c12bde693af298f72fe3ea4e0e02 (diff)
-spy: flush output before waiting for more events
I'm trying to use xprop with the -spy option in a shell script, and since it doesn't flush stdout, it's bunching up lots of modifications into a big chunk of writes.
-rw-r--r--xprop.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xprop.c b/xprop.c
index f1bf02a..6e2d067 100644
--- a/xprop.c
+++ b/xprop.c
@@ -1740,6 +1740,7 @@ main (int argc, char **argv)
XSelectInput(dpy, target_win, PropertyChangeMask);
for (;;) {
+ fflush(stdout);
XNextEvent(dpy, &event);
format = dformat = NULL;
if (props) {