From bae070914fc27db122e6131ae4838559c4a72f65 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 7 May 2009 16:52:31 +1000 Subject: input: update to inputproto 1.9.99.8 XI2 defines. Signed-off-by: Peter Hutterer --- dix/devices.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'dix/devices.c') diff --git a/dix/devices.c b/dix/devices.c index f7e32feb9..83285b4d1 100644 --- a/dix/devices.c +++ b/dix/devices.c @@ -267,7 +267,7 @@ SendDevicePresenceEvent(int deviceid, int type) ev.time = currentTime.milliseconds; ev.devchange = type; ev.deviceid = deviceid; - dummyDev.id = AllDevices; + dummyDev.id = XIAllDevices; SendEventToAllWindows(&dummyDev, DevicePresenceNotifyMask, (xEvent*)&ev, 1); } @@ -359,7 +359,7 @@ EnableDevice(DeviceIntPtr dev) TRUE); SendDevicePresenceEvent(dev->id, DeviceEnabled); - XISendDeviceHierarchyEvent(HF_DeviceEnabled); + XISendDeviceHierarchyEvent(XIDeviceEnabled); return TRUE; } @@ -430,7 +430,7 @@ DisableDevice(DeviceIntPtr dev) TRUE); SendDevicePresenceEvent(dev->id, DeviceDisabled); - XISendDeviceHierarchyEvent(HF_DeviceDisabled); + XISendDeviceHierarchyEvent(XIDeviceDisabled); return TRUE; } @@ -462,7 +462,7 @@ ActivateDevice(DeviceIntPtr dev) pScreen->DeviceCursorInitialize(dev, pScreen); SendDevicePresenceEvent(dev->id, DeviceAdded); - XISendDeviceHierarchyEvent(HF_SlaveAdded); + XISendDeviceHierarchyEvent(XISlaveAdded); return ret; } @@ -977,7 +977,7 @@ RemoveDevice(DeviceIntPtr dev) if (ret == Success && initialized) { inputInfo.numDevices--; SendDevicePresenceEvent(deviceid, DeviceRemoved); - XISendDeviceHierarchyEvent(HF_SlaveRemoved); + XISendDeviceHierarchyEvent(XISlaveRemoved); } return ret; -- cgit v1.2.3