From d568221710959cf7d783e6ff0fb80fb43a231124 Mon Sep 17 00:00:00 2001 From: Kaleb Keithley Date: Fri, 14 Nov 2003 16:49:22 +0000 Subject: XFree86 4.3.0.1 --- Xi/stubs.c | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'Xi/stubs.c') diff --git a/Xi/stubs.c b/Xi/stubs.c index 9c9269719..991f8b433 100644 --- a/Xi/stubs.c +++ b/Xi/stubs.c @@ -45,6 +45,7 @@ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ********************************************************/ +/* $XFree86: xc/programs/Xserver/Xi/stubs.c,v 3.4 2001/12/14 19:58:59 dawes Exp $ */ /* * stubs.c -- stub routines for the X server side of the XINPUT @@ -62,6 +63,7 @@ SOFTWARE. #include "inputstr.h" #include "XI.h" #include "XIproto.h" +#include "XIstubs.h" /*********************************************************************** * @@ -95,6 +97,7 @@ ChangeKeyboardDevice (old_dev, new_dev) /*********************************************************************** DeleteFocusClassDeviceStruct(old_dev); * defined in xchgptr.c * **********************************************************************/ + return BadMatch; } @@ -129,9 +132,17 @@ ChangeKeyboardDevice (old_dev, new_dev) */ int +#if NeedFunctionPrototypes +ChangePointerDevice ( + DeviceIntPtr old_dev, + DeviceIntPtr new_dev, + unsigned char x, + unsigned char y) +#else ChangePointerDevice (old_dev, new_dev, x, y) DeviceIntPtr old_dev, new_dev; unsigned char x, y; +#endif { /*********************************************************************** InitFocusClassDeviceStruct(old_dev); * allow focusing old ptr* @@ -143,6 +154,7 @@ ChangePointerDevice (old_dev, new_dev, x, y) else axes_changed = FALSE; *************************************************************************/ + return BadMatch; } /*********************************************************************** @@ -194,13 +206,13 @@ CloseInputDevice (d, client) void AddOtherInputDevices () { + /********************************************************************** + for each uninitialized device, do something like: + DeviceIntPtr dev; DeviceProc deviceProc; pointer private; - /********************************************************************** - for each uninitialized device, do something like: - dev = (DeviceIntPtr) AddInputDevice(deviceProc, TRUE); dev->public.devicePrivate = private; RegisterOtherDevice(dev); -- cgit v1.2.3