mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-27 18:48:46 +00:00
Call ts_read multiple times, to avoid events getting stuck in the pipeline.
This commit is contained in:
@@ -85,9 +85,7 @@ TsRead (int tsPort, void *closure)
|
||||
return;
|
||||
}
|
||||
|
||||
n = ts_read(tsDev, &event, 1);
|
||||
|
||||
if (n == 1)
|
||||
while (ts_read(tsDev, &event, 1) == 1)
|
||||
{
|
||||
if (event.pressure)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user