summaryrefslogtreecommitdiff
path: root/Xi
AgeCommit message (Collapse)AuthorFilesLines
2008-02-28XACE: Fix instances of DixUnknownAccess at hook callsites.Eamon Walsh1-1/+1
2008-02-28Xi: swap the control attached to a ChangeDeviceControl request. Bug #14170Peter Hutterer1-0/+35
Just swapping the request's data isn't enough, we need to swap the actual control as well. X.Org Bug 14170 <http://bugs.freedesktop.org/show_bug.cgi?id=14170>
2008-02-13XACE: Change access modes for some device-related requests.Eamon Walsh7-7/+7
Opening a device is not really "reading" it. Requests that globally configure a device should require "manage" access.
2008-01-17Fix for CVE-2007-6427 - Xinput extension memory corruption.Matthieu Herrb8-54/+33
2007-12-19Xi: specify correct struct when calculating size of GetDeviceControl reply.Peter Hutterer1-4/+4
This doesn't change much, as the struct previously given has the same size as the ones now anyway. Still, we should be pendantic. Thanks to Simon Thum for reporting.
2007-12-13Merge branch 'master' into XACE-SELINUXEamon Walsh2-6/+6
Conflicts: Xext/EVI.c Xext/bigreq.c Xext/cup.c Xext/dpms.c Xext/fontcache.c Xext/mitmisc.c Xext/xcmisc.c Xext/xf86bigfont.c Xext/xtest.c configure.ac dbe/dbe.c hw/darwin/darwin.h hw/darwin/darwinEvents.c hw/darwin/iokit/xfIOKit.h hw/darwin/iokit/xfIOKitCursor.c hw/darwin/quartz/fullscreen/fullscreen.c hw/darwin/quartz/fullscreen/quartzCursor.c hw/darwin/quartz/quartz.c hw/darwin/quartz/quartzCommon.h hw/darwin/quartz/quartzCursor.c hw/darwin/quartz/xpr/dri.c hw/darwin/quartz/xpr/dristruct.h hw/darwin/quartz/xpr/xprCursor.c hw/darwin/quartz/xpr/xprFrame.c hw/xfree86/modes/xf86RandR12.c include/cursor.h miext/rootless/rootlessCommon.h miext/rootless/rootlessScreen.c miext/rootless/rootlessWindow.c render/picturestr.h Trying to pick up the pieces from the darwin churn here...
2007-12-05ProcessOtherEvent: Don't do double translation of button eventsDaniel Stone1-2/+2
We already deal with the button mapping in GetPointerEvents, so don't do the remapping again in ProcessOtherEvent.
2007-11-27Xi: set DeviceXXXState's length fields to the correct size of the struct.Peter Hutterer1-4/+4
Setting it to the size of a pointer is an interesting but equally wrong approach. Luckily Xlib never used this field anyway so nobody got hurt so far. Spotted by Simon Thum. (cherry picked from commit 0f2398d06ce591724e388b3270800c5e22b3de2d)
2007-11-20registry: Remove registry code from XInput extension.Eamon Walsh1-115/+0
Moving all the names into dix/registry.c
2007-11-05Merge branch 'master' into XACE-SELINUXEamon Walsh1-2/+2
Conflicts: dix/dispatch.c dix/property.c hw/xfree86/common/xf86VidMode.c include/xkbsrv.h render/glyph.c xkb/xkbActions.c
2007-11-05Xi: Remove usage of allocaDaniel Stone1-2/+2
Replace with xalloc/xfree.
2007-10-18dix: Add client parameter to AddPassiveGrabsToList().Eamon Walsh1-2/+2
2007-10-15registry: Register Input extension protocol names.Eamon Walsh1-0/+117
2007-09-28xace: add hooks + new access codes: XKB extension.Eamon Walsh4-6/+16
Removes "LookupKeyboardDevice" and "LookupPointerDevice" in favor of inputInfo.keyboard and inputInfo.pointer, respectively; all use cases are non-XI compliant anyway.
2007-09-28xace: add new hooks + access controls: XInput extension.Eamon Walsh37-173/+161
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 Walsh35-652/+267
Also fixed two "unused variable: stuff" warnings.
2007-09-23Input: Generate XKB mapping changes for all core-sending devices (bug #12523)Daniel Stone3-4/+13
When we change the mapping on a core device, make sure we propagate this through to XKB for all extended devices as well.
2007-08-01Input: Don't enable devices when we open themDaniel Stone1-4/+0
Thanks to Xi's braindead design, it's otherwise impossible to query input devices without enabling them. Hurrah.
2007-06-25Only decrement buttonsDown when the button count is greater than 0.Peter Hutterer1-2/+4
Device drivers flush their buttons on device init and cause a button down event to be generated. If we unconditionally decrease the buttons, we won't be able to ever get a passive device grab. Format documentation for CheckDeviceGrabs to make it readable. (cherry picked from commit 3e894974cdd6a75683d4601f71622d1da7ec4395) Conflicts: Xi/exevents.c
2007-04-11Input: Allow a pointer to a device to be returned in NIDRRemigiusz Marcinkiewicz1-1/+1
Allow a pointer to the first device added to be returned, so we know which device(s) were added by the NIDR call.
2007-04-10Input: Add DeleteInputDeviceRequestMagnus Vigerlöf1-0/+12
Add DIDR, which asks the DDX to remove a device, analogous to NewInputDeviceRequest. Only implemented for XFree86 at the moment.
2007-03-29Xi: remove 'register' keywords.Peter Hutterer38-188/+188
2007-03-25Static cleanup on Xi/Adam Jackson14-866/+713
2007-03-25Static cleanups, dead code deletion.Adam Jackson2-3/+2
2006-12-15Convert callers of LookupWindow() to dixLookupWindow().Eamon Walsh7-35/+35
2006-10-29Xi: disallow changing core keyboard and pointerDaniel Stone6-285/+4
Just short-circuit the change core keyboard/pointer requests.
2006-10-22xi: fix NIDR return yet againDaniel Stone1-1/+1
For a one-line function, it was pretty broken.
2006-10-22xi: fix return type for NIDRDaniel Stone1-1/+1
2006-10-22xi: add NewInputDeviceRequest to stubsDaniel Stone1-0/+14
2006-10-22xi: change DEVICE_TOUCHSCREEN to ABS_{AREA_CALIB} for stubsDaniel Stone1-1/+2
2006-10-22Xi: swap control in DevicePresenceNotifyDaniel Stone1-0/+1
2006-10-22dix, Xi: make use of deviceid in DevicePresenceNotifyDaniel Stone1-50/+49
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-21Merge branch 'input-hotplug' of git+ssh://git.freedesktop.org/git/xorg/xserverZephaniah E. Hull3-0/+52
2006-10-21DEVICE_TOUCHSCREEN becomes DEVICE_ABS_CALIB.Zephaniah E. Hull3-37/+113
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-20xi: add DEVICE_ENABLE controlDaniel Stone3-0/+52
Add DEVICE_ENABLE control, which allows runtime enabling and disabling of specific devices.
2006-10-08Xi: move SendEventToAllWindows and FindInterestedChildren to exeventsDaniel Stone2-45/+44
Move SendEventToAllWindows and FindInterestedChildren from chgptr to exevents, so the DIX can more easily use it. Clean up two warnings (type mismatch, unused variable) in exevents.c.
2006-09-10Typo correction, 'i' is not a '1', so no longer crash on some Xi requests.Zephaniah E. Hull1-1/+1
2006-08-07enable adding devices after removal of a middle deviceDaniel Stone1-4/+7
Allow new devices to be added after a device that _wasn't_ the last on the list was removed, by ensuring inputInfo.numDevices always increases, and never decreases.
2006-07-21be more careful in IVASDaniel Stone1-1/+6
Don't walk off the end of a NULL pointer in InitValuatorAxisStruct.
2006-07-21Xi: add XExtension{Keyboard,Pointer} typesDaniel Stone1-0/+4
Report XExtensionKeyboard for non-core keyboards, and XExtensionPointer for non-core pointers/mice.
2006-07-21Xi: add DevicePresenceNotifyKristian Høgsberg3-15/+85
Add support for DevicePresenceNotify events.
2006-07-21add DEVICE_TOUCHSCREEN and DEVICE_CORE Xi controls (DeviceIntRec ABI break)Daniel Stone4-0/+123
Add DEVICE_TOUCHSCREEN and DEVICE_CORE controls to the Xi code, and the TouchscreenClassRec and a coreEvents flag, to toggle propagation of core events.
2006-07-18get rid of XFree86LOADER, XFree86Server, XFree86Module, and IN_MODULEDaniel Stone1-1/+1
Get rid of almost all uses of these definitions. They're still defined for delinquent out-of-tree drivers, and also for the Mesa build. As well as for miinitext.c. But largely gone.
2006-04-09Coverity #323, #445, #446, #447: Fix potential NULL dereferences.Daniel Stone1-0/+18
2006-03-31Reindent with -cbi0.Daniel Stone7-53/+57
2006-02-20indent fixes (OMG SO UGLY), and nuke old RCS keywords.Adam Jackson74-3767/+3024
2006-02-20ANSIfy Xi/. Mostly automated via protoize(1).Adam Jackson38-690/+320
2006-02-15Mark everything in dixsym.c as _X_EXPORT.Adam Jackson2-3/+3
2005-12-02Define XFree86Server only where it is required.Kevin E Martin1-1/+1