mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-04 19:10:14 +01:00
Call ts_read multiple times, to avoid events getting stuck in the pipeline.
This commit is contained in:
parent
7976ee51af
commit
fd594b0559
1 changed files with 1 additions and 3 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue