mirror of
https://github.com/X11Libre/xf86-input-synaptics.git
synced 2026-04-14 11:54:16 +00:00
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 <anders@kaseorg.com>.)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user