mirror of
https://github.com/X11Libre/xf86-input-synaptics.git
synced 2026-03-24 01:34:04 +00:00
Support XINPUT ABI version 23
Use input_lock/input_unlock calls instead of SIGIO functions Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
@@ -1601,9 +1601,11 @@ timerFunc(OsTimerPtr timer, CARD32 now, pointer arg)
|
||||
SynapticsPrivate *priv = (SynapticsPrivate *) (pInfo->private);
|
||||
struct SynapticsHwState *hw = priv->local_hw_state;
|
||||
int delay;
|
||||
int sigstate;
|
||||
|
||||
sigstate = xf86BlockSIGIO();
|
||||
#if !HAVE_THREADED_INPUT
|
||||
int sigstate = xf86BlockSIGIO();
|
||||
#else
|
||||
input_lock();
|
||||
#endif
|
||||
|
||||
priv->hwState->millis += now - priv->timer_time;
|
||||
SynapticsCopyHwState(hw, priv->hwState);
|
||||
@@ -1613,7 +1615,11 @@ timerFunc(OsTimerPtr timer, CARD32 now, pointer arg)
|
||||
priv->timer_time = now;
|
||||
priv->timer = TimerSet(priv->timer, 0, delay, timerFunc, pInfo);
|
||||
|
||||
#if !HAVE_THREADED_INPUT
|
||||
xf86UnblockSIGIO(sigstate);
|
||||
#else
|
||||
input_unlock();
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -36,6 +36,10 @@
|
||||
#define NO_DRIVER_SCALING 1
|
||||
#endif
|
||||
|
||||
#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 23
|
||||
#define HAVE_THREADED_INPUT 1
|
||||
#endif
|
||||
|
||||
#ifdef DBG
|
||||
#undef DBG
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user