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 9271b26d991608b562960aa041b0c371086cc490
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.