mirror of
https://github.com/X11Libre/xf86-input-mouse.git
synced 2026-03-24 01:24:06 +00:00
Work around race condition during VT switch.
https://bugzilla.novell.com/show_bug.cgi?id=219946
This commit is contained in:
@@ -1166,6 +1166,9 @@ MouseReadInput(InputInfoPtr pInfo)
|
||||
pBufP = pMse->protoBufTail;
|
||||
pBuf = pMse->protoBuf;
|
||||
|
||||
if (pInfo->fd == -1)
|
||||
return;
|
||||
|
||||
/*
|
||||
* Set blocking to -1 on the first call because we know there is data to
|
||||
* read. Xisb automatically clears it after one successful read so that
|
||||
|
||||
Reference in New Issue
Block a user