summaryrefslogtreecommitdiff
path: root/Xi/extinit.c
AgeCommit message (Collapse)AuthorFilesLines
2008-12-01Require inputproto 1.5Peter Hutterer1-2/+2
Also claim to now support XI 1.5. Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
2008-12-01Xi: Purge XGE remainders, we don't have any XGE events anymore.Peter Hutterer1-37/+0
2008-12-01input: don't switch MDs' classes around between SDs.Peter Hutterer1-52/+0
Server 1.6 uses the X Input 1.x input model, where the core devices (VCP and VCK) do not generate XI events. They don't have to swap device classes but instead stay at the default number of classes at all times. This means we can get rid of the DeviceClassesChangedEvents as well.
2008-12-01dix: No DeviceEnterLeave events in server 1.6Peter Hutterer1-41/+0
2008-12-01Xi: remove all new XI2 protocol requests and their handling.Peter Hutterer1-36/+3
This commit reverts to XI 1.4 requests, plus the input device property requests. Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
2008-11-04Purge device-based WindowAccess code.Peter Hutterer1-17/+8
Really, this was a bad idea. It's not security, the UI features that would have been cool (e.g. clicking through windows) aren't implemented anyway, and there's nothing you can't achieve just by using plain XI anyway. Requires inputproto 1.9.99.6.
2008-10-31Move MAX_DEVICES to misc.h, rename to MAXDEVICES for consistency.Peter Hutterer1-6/+6
2008-10-06Loader: Unexport a handful of consumerless symbols from dixsym.Adam Jackson1-1/+1
2008-09-26Xi: remove configure/query device property calls.Peter Hutterer1-32/+26
This removes all the meta-information about device properties (pending, fromClient, range, valid_values, immutable).
2008-09-18Xi: remove broken SDeviceEnterNotifyEvent, replace with ...Leave...Peter Hutterer1-11/+1
The event format is the same for both (bar the type), so one is enough.
2008-08-28Prepare for array-index based devPrivates.Tomas Carnecky1-1/+2
TODO: static indices can be made just an int; some indices can be combined.
2008-08-22Xi: don't include .c files.Peter Hutterer1-2/+1
2008-08-22Xi: swap devices property replies.Peter Hutterer1-0/+6
2008-08-15Backport device properties to XI 1.5 instead of XI 2.0Peter Hutterer1-35/+58
2008-07-13Xi: expose Enable/DisableDevice through XI_PROP_ENABLED property.Peter Hutterer1-0/+2
2008-07-10Xi: add support for input device properties.Peter Hutterer1-2/+15
Basically just copied from randr properties, with minor changes only. Each device supports arbitrary properties that can be modified by clients. Modifications to the properties are passed to the driver (if applicable) and can then affect the configuration of the device. Note that device properties are limited to a specific device. A property set on a slave device does not migrate to the master.
2008-07-10Revert "Xi: add support for input device properties."Peter Hutterer1-15/+2
Note to self: don't mix up branches with half-finished cherrypicks. This reverts commit 666838fcc8b71fdeae160844160187f345cbf4a6.
2008-07-10Xi: add support for input device properties.Peter Hutterer1-2/+15
Basically just copied from randr properties, with minor changes only. Each device supports arbitrary properties that can be modified by clients. Modifications to the properties are passed to the driver (if applicable) and can then affect the configuration of the device. Note that device properties are limited to a specific device. A property set on a slave device does not migrate to the master.
2008-05-13Xi: Fix up ProcIVector, got out of sync with the protocol.Peter Hutterer1-10/+10
When the opcode squash happened in the protocol, the processing vector got out of sync for a few requests. As a result, client and server would interpret requests differently, leading to a couple of BadLength problems.
2008-04-29Xi: stop excessive use of _X_EXPORT.Peter Hutterer1-1/+1
2008-04-29Xi: add IEventBase global variable. Stores event base for X Input events.Peter Hutterer1-0/+3
2008-04-26Xi: add versioning support.Peter Hutterer1-1/+32
Remember the version the client sent to us, so we can adjust our replies accordingly. This requires the client to use the {major|minor}Version fields in the GetExtensionVersion request. However, they were padding before, so we must assume they are garbage if nbytes is non-zero. If nbytes is zero, the client is probably a new client and we can handle it correctly.
2008-04-25Xi: handle requests through a dispatch handler.Peter Hutterer1-188/+111
Same principle as e.g. in the RandR extension, rather than having a load of if (type == XI_whatever) use an array of function pointers.
2008-04-25Xi: remove unused #define DISPATCHPeter Hutterer1-5/+0
2008-02-25Xi: remove GetPairedPointer handling.Peter Hutterer1-7/+0
obsolete, ListInputDevices provides this information now.
2008-02-14Xi: remove FakeDeviceData calls. And one leftover from GrabAccessControl.Peter Hutterer1-8/+0
FakeDeviceData needs more thoughtful integration.
2008-02-14Xi: remove raw device events.Peter Hutterer1-21/+0
Need to be better refined.
2008-02-14Xi: Remove files for GrabAccessControl.Peter Hutterer1-5/+0
2008-01-03Merge branch 'master' into mpxPeter Hutterer1-23/+2
Conflicts: XTrap/xtrapddmi.c Xext/security.c Xext/xprint.c Xext/xtest.c Xext/xvdisp.c Xi/exevents.c Xi/grabdevb.c Xi/grabdevk.c Xi/opendev.c Xi/ungrdev.c Xi/ungrdevb.c Xi/ungrdevk.c dix/cursor.c dix/devices.c dix/dixutils.c dix/events.c dix/getevents.c dix/main.c dix/window.c hw/xfree86/ramdac/xf86Cursor.c include/dix.h include/input.h include/inputstr.h mi/midispcur.c mi/miinitext.c mi/misprite.c render/animcur.c xfixes/cursor.c xkb/xkbAccessX.c
2007-12-04dix: change the filters to be per-device.Peter Hutterer1-3/+9
If we have one global filter, one pointer may change the filter value and affect another pointer. Reproduceable effect: blackbox and xterm, start dragging xterm then click anywhere with the other pointer (attached to different masterd device!). The button release resets the filter[Motion_Filter(button)] value, thus stopping dragging and no event is sent to the client anymore. Having the filters set per device gets around this.
2007-11-20registry: Remove registry code from XInput extension.Eamon Walsh1-115/+0
Moving all the names into dix/registry.c
2007-11-18Xi: add missing XI_DeviceClassesChangedMask to XI filters array.Peter Hutterer1-1/+2
2007-11-13Xi: remove RegisterPairingClient handling. Deprecated with device hierarchy.Peter Hutterer1-8/+0
2007-11-13Xi: remove trailing whitespaces.Peter Hutterer1-13/+13
2007-11-09Xi, dix: Add ability to change MD classes + send event when doing so.Peter Hutterer1-0/+51
Each time a different slave device sends through a master, an DeviceClassesChangedEvent is enqueued. When this event is processed, all classes of the matching master device are changed, and the event is sent to the clients. Next time the master is queried, it thus shows the evclasses of the last slave device. The original classes are stored in the devPrivates. TODO: if all slave devices are removed, the master's original classes need to be restored.
2007-11-09Xi: notify the clients when the device hierarchy has been changed.Peter Hutterer1-3/+2
2007-11-08Merge branch 'mpx' into mdsdPeter Hutterer1-2/+1
Conflicts: Xi/opendev.c
2007-11-07Merge branch 'master' into mpxPeter Hutterer1-2/+1
Conflicts: Xi/extinit.c Xi/grabdev.c Xi/setmode.c Xi/ungrdev.c dix/devices.c dix/events.c dix/getevents.c include/dix.h mi/midispcur.c mi/misprite.c xkb/xkbActions.c xkb/xkbEvents.c xkb/xkbPrKeyEv.c
2007-10-19Xi: advertise as XInput v2 capablePeter Hutterer1-2/+2
2007-10-19Xi: remove ChangePointerKeyboardPairing in favour of ChangeDeviceHierarchy.Peter Hutterer1-9/+5
2007-10-15registry: Register Input extension protocol names.Eamon Walsh1-0/+117
2007-09-28xace: add new hooks + access controls: XInput extension.Eamon Walsh1-23/+0
Introduces new dix API to lookup a device, dixLookupDevice(), which replaces LookupDeviceIntRec and LookupDevice.
2007-09-26Input: Properly swap DevicePresenceNotify events.Eamon Walsh1-0/+3
2007-09-26Input: Return errors to the dispatcher instead of sending them ourself.Eamon Walsh1-8/+2
Also fixed two "unused variable: stuff" warnings.
2007-09-26Xi: unify ErrorFs. Prefix all with [Xi].Peter Hutterer1-1/+1
2007-09-06dix: don't change the device struct while processing core events.Peter Hutterer1-0/+12
The device state needs to be changed while processing the XI event. Core events are always processed after XI, so by then the device is already set up properly. However, we now rely on DeviceButtonMotionMask to be equal to ButtonMotionMask. It already is, but stick a big fat warning in so nobody attempts to change it. This commit disables XKB for the VCK, thus essentially for all devices. Temporarily anyway.
2007-07-01Add 'evfill' field to GEExtensions.Peter Hutterer1-1/+11
We need this to allow extensions to fill in extra data for an event before it is sent to the client. This is probably to be used like FillUpEventsFromWindow().
2007-05-17Clean up, correct some comments.Peter Hutterer1-7/+4
Send event type down with the RawEvents.
2007-05-14Add ExtendedGrabDevice handling.Peter Hutterer1-0/+7
Add XGE handling in DeliverGrabbedEvent. We can now grab something selecting XGE events, but the current code is a bit messy and doesn't work too well yet.
2007-05-02Cleaning up a bit.Peter Hutterer1-20/+40
Register correct event in EventSwapVector. Fix up event swap for GE events, register XI's swap function at GE.