summaryrefslogtreecommitdiff
path: root/dix
AgeCommit message (Collapse)AuthorFilesLines
2006-12-06config: move config.h to hotplug.hDaniel Stone2-4/+3
Also, move configInitialise to after OsInit, since the next commit will make it use a timer.
2006-12-06GetPointerEvents: always send valuator events for MotionNotifyDaniel Stone1-5/+8
Always chase a DeviceMotionNotify event with a DeviceValuator, which is not required in the spec, but will silently break the lib if you don't include.
2006-12-06GetPointerEvents: fix typoDaniel Stone1-1/+1
Fix typo that resulted in inverted axes when using an absolute positioning device that didn't report y, and thus relied on the previous value.
2006-12-06config: move to block/wakeup handlerDaniel Stone1-3/+0
2006-12-06SyntheticMotion: don't dereference sprite.screen when not using XineramaDaniel Stone1-1/+2
(cherry picked from aa052e43c6c293e14f78837e00c6b7581f9713bb commit)
2006-12-01Naming change: Security*Operation -> Xace*OperationEamon Walsh1-8/+8
2006-12-01Define calls away when not building XACE, allowing ifdef's to be removed.Eamon Walsh9-181/+80
2006-11-30Tell automake to STFU about the *.O filesAlan Coopersmith1-1/+1
automake will not stop whining about the *.O files not being in normal library name format, so just tell automake they are PROGRAMS so it builds them without bitching.
2006-11-27Merge branch 'randr-1.2'Eric Anholt2-5/+6
Conflicts: dix/events.c dix/getevents.c hw/xfree86/common/xf86Mode.c hw/xfree86/dri/Makefile.am hw/xfree86/os-support/drm/xf86drm.c hw/xfree86/os-support/xf86drm.h
2006-11-21Issue CloseDownDevices() in os/log.c and remove from dix/main.c.Alan Hourihane1-5/+0
This ensures that all calls to FatalError() will shutdown the input devices.
2006-11-18Shutdown input devices if FatalError occurs during startup.Alan Hourihane1-5/+15
Fixes Xdmx problems when the input device has been initialized and the keyboard map has been destroyed.
2006-11-11ffs: handle 0 argument (bug #8968)Jurij Smakov1-0/+2
Handle an argument of 0 in ffs(), instead of looping indefinitely. Add an ffs prototype to dix.h, and add includes to ffs.c. (cherry picked from 34164e551e4c3909322d50b09835ca4ac1d49d68 commit)
2006-11-08remove trailing whitespaceDaniel Stone1-2/+2
Whitespace police in full effect.
2006-11-08Get*Events: massive reorganisationDaniel Stone1-223/+226
Reorganise the code logically, and put more comments in. Clip valuators in proximity calls.
2006-11-08SyntheticMotion: don't dereference sprite.screen when not using XineramaDaniel Stone1-1/+2
2006-11-08dix: remove staggeringly broken vendor workaroundsDaniel Stone1-8/+0
Dear SGI, No. Scant regards, Daniel
2006-11-08dix/mi: still more warning fixesDaniel Stone1-8/+15
Fix up prototypes for PrintChildren and PrintWindowTree in the dix. Make miPrintRegion be unconditionally defined, and move the prototype into regionstr.h. Change a bunch of ScreenPtr pScreen = foo; to ScreenPtr pScreen; pScreen = foo; in window.c, so we avoid unused variable references (as inline REGION_* doesn't reference pScreen).
2006-11-08dix: add missing prototypesDaniel Stone2-1/+6
Add missing prototype for ffs, and include headers from ffs.c. Move PostSyntheticMotion prototype to input.h.
2006-11-08dix: remove unused debug codeDaniel Stone1-10/+0
2006-11-08dix: remove unused variableDaniel Stone1-1/+0
2006-11-08CreateColormap: fix return value (bug #7083)Laurence Withers1-1/+1
Return BadMatch when an unsupported visual type is given, not BadValue -- this is correct according to the spec.
2006-11-07Merge branch 'autoconfig-for-7.2'Adam Jackson1-1/+1
2006-11-07Avoid dereferencing sprite.screen when Xinerama is not running. (#8925)Keith Packard2-5/+6
With Xinerama support built into the X server but not in use, sprite.screen is NULL and yet the SyntheticMotion macro would dereference it. Avoid that by just passing sprite.screen to PostSyntheticMotion which can then dereference it when Xinerama is enabled. Also, define PostSyntheticMotion in dixevents.h and include dixevents.h in getevents.c
2006-11-06More work on Bug #8875: revert previous fix and try using client argumentEamon Walsh1-1/+0
instead of serverClient. Also don't use totalClientSize as it is not initialized until after the first call to InitClient.
2006-11-03Add DTrace probe points for X server <-> client communicationsAlan Coopersmith7-2/+380
See http://people.freedesktop.org/~alanc/dtrace/ for more details
2006-11-02PostSyntheticMotion needs to be extern, not static, since it's in getevents.cAlan Coopersmith1-1/+1
2006-11-01input: add non-keyboard bell ringing functionDaniel Stone1-2/+4
Add a generic 'ring the bell' function (console bell on Linux and BSD, /dev/audio on Solaris), and add DDX functions for this. Make this the core keyboard's bell. Port Xvfb and Xnest to this. Port XFree86 to this, with OS-specific hooks for Linux, BSD, and Solaris taken from foo_io.c in the old layer.
2006-10-27CoreKeyboardProc: annotate with FIXMEDaniel Stone1-2/+5
Setting an empty keymap by default isn't wildly useful.
2006-10-27CoreKeyboardProc: don't leak keymap and modmapDaniel Stone1-0/+4
SetKeySymsMap does a copy here, so try not to leak them.
2006-10-27getValuatorEvents: make sure we put MORE_EVENTS in the right placesDaniel Stone1-0/+3
Make sure we put MORE_EVENTS in with the device id if there are, in fact, more valuator events coming.
2006-10-25GetPointerEvents: always ensure correct number of eventsDaniel Stone1-2/+2
Ensure correct number of valuator events are returned, and that we always increment events correctly.
2006-10-25port all users to the new DIX motion history APIDaniel Stone2-3/+4
Port KDrive, Xvfb, and Xnest, as well as the virtual core devices, to the new motion history API. Make GetPointerEvents also update the history.
2006-10-25dix: add motion history supportDaniel Stone2-0/+115
Add motion history support (sort of based on the XFree86 DDX's implementation) to the DIX.
2006-10-25miscellaneous warning fixesDaniel Stone1-2/+4
Use the correct type for time, and fix the mi prototype of EnqueueEvent.
2006-10-23GetProximityEvents: add (untested) functionDaniel Stone1-0/+52
Add untested first guess at what GetProximityEvents should look like.
2006-10-23GetPointerEvents: break into separate functionsDaniel Stone1-54/+89
Break out clipAxis, clipValuators, and getValuatorEvents, into separate functions, to be used by the proximity event code.
2006-10-23dix/getevents: move SyntheticMotion to getevents.cDaniel Stone2-26/+41
Mostly, this is just a cheesy hack to ensure that getevents.o gets included when linking. Sigh.
2006-10-23dix/getevents: cosmetic cleanups, remove keymap copy from GKVEDaniel Stone1-40/+23
Remove keymap copy from GetKeyboardValuatorEvents, as SwitchCoreKeyboard now takes care of this for us. Remove unused variable and function prototype. Update comments to be as informative as possible.
2006-10-22dix, Xi: make use of deviceid in DevicePresenceNotifyDaniel Stone1-0/+4
Use the deviceid and control fields in DevicePresenceNotify since the last push to inputproto to send a DPN whenever a control changes on a device.
2006-10-22minor formatting fixesDaniel Stone1-3/+2
2006-10-21Merge branch 'input-hotplug' of git+ssh://git.freedesktop.org/git/xorg/xserverZephaniah E. Hull2-9/+49
2006-10-21DEVICE_TOUCHSCREEN becomes DEVICE_ABS_CALIB.Zephaniah E. Hull1-12/+21
Update the DEVICE_ABS_CALIB stuff to include the new elements. New DEVICE_ABS_AREA support. dev->touchscreen becomes dev->absolute, with _CALIB and _AREA stuff in it. Update xfree86 to compile with this, kdrive needs an update too.
2006-10-20move keymap copy to event processing, from enqueuingDaniel Stone1-9/+45
Move the keymap copying to event processing time (in ProcessInputEvents), instead of being at event enqueuing time. Break SetCore{Pointer,Keyboard} out into separate functions. Change mieqEnqueue to take a device pointer, that asks for the _original_ device associated with this event.
2006-10-20xi: add DEVICE_ENABLE controlDaniel Stone1-0/+4
Add DEVICE_ENABLE control, which allows runtime enabling and disabling of specific devices.
2006-10-15dix/devices: add devices in proper forward orderDaniel Stone1-5/+13
Add devices in forward order with the normal linked list convention. Previously, AddInputDevice would add all the devices in reverse order to off_devices, before they were added again in reverse order to devices with EnableDevice. This just makes both work in forward order, which provides the ordering as you'd expect when hotplugging devices (i.e. adds them to the head, not the tail).
2006-10-14dix: move GetKeyboardEvents/GetPointerEvents to a new file, export symbolsDaniel Stone3-473/+531
Move GKE and GPE to a separate file, to help stem the events.c explosion. Mark GKE/GKVE/GPE as _X_EXPORT.
2006-10-14dix/devices: remove XACE merge debrisDaniel Stone1-6/+0
2006-10-13Merge branch 'master' of git+ssh://git.freedesktop.org/git/xorg/xserver into ↵Daniel Stone10-197/+247
input-hotplug
2006-10-08GetKeyboardEvents: add first_valuator argument to GKVEDaniel Stone1-2/+3
2006-10-08GetKeyboardValuatorEvents: also take first_valuator paramDaniel Stone1-12/+12
Take a first_valuator parameter, which specifies the first valuator.