xfree86: Use threaded input mechanism [v2]
Switch the XFree86 DDX over to threaded input v2: Rewrite comment in xf86Helper about silken mouse Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
f84703b50c
commit
a977c9c4d0
|
@ -310,7 +310,7 @@ xf86ReadInput(int fd, int ready, void *closure)
|
|||
void
|
||||
xf86AddEnabledDevice(InputInfoPtr pInfo)
|
||||
{
|
||||
SetNotifyFd(pInfo->fd, xf86ReadInput, X_NOTIFY_READ, pInfo);
|
||||
InputThreadRegisterDev(pInfo->fd, xf86ReadInput, pInfo);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -320,7 +320,7 @@ xf86AddEnabledDevice(InputInfoPtr pInfo)
|
|||
void
|
||||
xf86RemoveEnabledDevice(InputInfoPtr pInfo)
|
||||
{
|
||||
RemoveNotifyFd(pInfo->fd);
|
||||
InputThreadUnregisterDev(pInfo->fd);
|
||||
}
|
||||
|
||||
static int *xf86SignalIntercept = NULL;
|
||||
|
|
|
@ -1719,15 +1719,9 @@ xf86SetSilkenMouse(ScreenPtr pScreen)
|
|||
}
|
||||
free(options);
|
||||
/*
|
||||
* XXX quick hack to report correctly for OSs that can't do SilkenMouse
|
||||
* yet. Should handle this differently so that alternate async methods
|
||||
* work correctly with this too.
|
||||
* Use silken mouse if requested and if we have threaded input
|
||||
*/
|
||||
/* Disable this completely when removing SIGIO support. It
|
||||
* will get re-enabled correctly when we add threaded input
|
||||
* support
|
||||
*/
|
||||
pScrn->silkenMouse = useSM && FALSE;
|
||||
pScrn->silkenMouse = useSM && InputThreadEnable;
|
||||
if (serverGeneration == 1)
|
||||
xf86DrvMsg(pScreen->myNum, from, "Silken mouse %s\n",
|
||||
pScrn->silkenMouse ? "enabled" : "disabled");
|
||||
|
|
|
@ -887,6 +887,9 @@ InitInput(int argc, char **argv)
|
|||
|
||||
xf86Info.vtRequestsPending = FALSE;
|
||||
|
||||
/* Enable threaded input */
|
||||
InputThreadPreInit();
|
||||
|
||||
mieqInit();
|
||||
|
||||
/* Initialize all configured input devices */
|
||||
|
|
Loading…
Reference in New Issue