From f764fdbf20e25e5bbcbc6cc462cb06903bae2cff Mon Sep 17 00:00:00 2001 From: Peter Osterlund Date: Mon, 17 Nov 2003 16:42:57 +0100 Subject: [PATCH] Added an fflush() call after the printf in the monitor loop in synclient.c. This makes "synclient -m" behave better when the output is piped to some other program. (From Anders Kaseorg .) --- synclient.c | 1 + 1 file changed, 1 insertion(+) diff --git a/synclient.c b/synclient.c index 9f80fef..011199c 100644 --- a/synclient.c +++ b/synclient.c @@ -160,6 +160,7 @@ static void monitor(SynapticsSHM* synshm, int delay) cur.left, cur.right, cur.up, cur.down, cur.multi[0], cur.multi[1], cur.multi[2], cur.multi[3], cur.multi[4], cur.multi[5], cur.multi[6], cur.multi[7]); + fflush(stdout); old = cur; } usleep(delay * 1000);