From fb347fb74e1a50fa900f225d13eee1aa829fa2f9 Mon Sep 17 00:00:00 2001 From: Matthias Hopf Date: Thu, 23 Nov 2006 18:17:33 +0100 Subject: [PATCH] Work around race condition during VT switch. https://bugzilla.novell.com/show_bug.cgi?id=219946 --- src/mouse.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mouse.c b/src/mouse.c index a68e886..aea0e55 100644 --- a/src/mouse.c +++ b/src/mouse.c @@ -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