Created attachment 16813 [details] [review]
Patch to add flushing to xprop -spy
When piping the output of xprop -spy into a script, the output is buffered, and so the script does not see property changes immediately. This does not show up when xprop -spy is run from a tty, since then the output is unbuffered by default.
The fix is simple, just fflush(stdout) when entering spy mode and after outputting each property, a patch is attached.
Normally, when output is a tty output is line-buffered, so it should only matter in the script case.
Otherwise, that patch looks good to me. Any reason not to commit it?
Thanks for the patch.
This was corrected in commit