diff options
author | Neale Pickett <neale@woozle.org> | 2008-11-26 17:28:56 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2008-11-26 17:28:56 -0800 |
commit | 9271b26d991608b562960aa041b0c371086cc490 (patch) | |
tree | ab42528b7c81d2a83820a625ff415e77d8d21066 | |
parent | 3c139c58b5c2c12bde693af298f72fe3ea4e0e02 (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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) { |