xf86-input-acecad: adapt to latest xserver input driver API.
This commit is contained in:
parent
058038d574
commit
663938b0b9
@ -491,7 +491,7 @@ AceCadPreInit(InputDriverPtr drv, InputInfoPtr local, int flags)
|
||||
|
||||
if (local->fd != -1)
|
||||
{
|
||||
RemoveEnabledDevice (local->fd);
|
||||
xf86RemoveEnabledDevice (local);
|
||||
if (priv->buffer)
|
||||
{
|
||||
XisbFree(priv->buffer);
|
||||
@ -499,7 +499,7 @@ AceCadPreInit(InputDriverPtr drv, InputInfoPtr local, int flags)
|
||||
}
|
||||
xf86CloseSerial(local->fd);
|
||||
}
|
||||
RemoveEnabledDevice (local->fd);
|
||||
xf86RemoveEnabledDevice (local);
|
||||
local->fd = -1;
|
||||
return Success;
|
||||
|
||||
@ -601,7 +601,7 @@ DeviceOff (DeviceIntPtr dev)
|
||||
|
||||
if (local->fd != -1)
|
||||
{
|
||||
RemoveEnabledDevice (local->fd);
|
||||
xf86RemoveEnabledDevice (local);
|
||||
if (priv->buffer)
|
||||
{
|
||||
XisbFree(priv->buffer);
|
||||
|
Loading…
Reference in New Issue
Block a user