summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2010-02-20config: move CWARNFLAGS from configure.ac to Makefile.amGaetan Nadon
Compiler warning flags should be explicitly set in the makefile rather than being merged with other packages compiler flags. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2009-09-29Don't export sizeDeviceClassType, size_classes and copy_classesJulien Cristau
Signed-off-by: Julien Cristau <jcristau@debian.org>
2009-09-24XQueryDeviceState: correct length of XValuatorStatePeter Hutterer
The length is suppposed to be the complete class size, not just the struct size. Since XValuatorState is followed by multiple valuator values the size of the class is variable and dependent on the number of valuators. The server assembles the valuator state last. This bug is unlikely to affect clients as they should never go past the last class anyway. Tested-by: Thomas Jaeger Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-09-07mask_len in XIGrabDevice is in 4-byte units (#23708)Peter Hutterer
X.Org Bug 23708 <http://bugs.freedesktop.org/show_bug.cgi?id=23708> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-09-01Initialize send_event for cookie events. (#23609)Peter Hutterer
X.Org Bug 23609 <http://bugs.freedesktop.org/show_bug.cgi?id=23609>
2009-08-24Update XIWarpPointer to take doubles (inputproto >= 1.9.99.902)Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-08-05Update library version for new symbols.Peter Hutterer
XI2 adds a whole lot of new symbols but leaves the existing ones. Minor bump only. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-08-04Remove leftover RCS tags.Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-22Replace keysym grabs with keycode grabs.Peter Hutterer
Keysym grabs are tricky to get right for applications that are more complicated than demo applications. otoh, we know keycode grabs are working. So let's go with keycode grabs for now and add keysym grabs later when we've sorted out the details. Requires inputproto 1.9.99.15 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-15Fix wrong raw_valuator wire copy, add fractional parts.Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-13Add flags to XIDeviceEvent and XIRawEvent.Daniel Stone
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-13Cater for new event-specific raw event types.Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-13Fix broken formatting, remove empty comment.Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-13Add the deviceid to XI2 property events.Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-13Plug memory leak in XIHierarchyEvent copy.Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-13Fix segfault in XIDeviceChangedEvent wire parsing.Peter Hutterer
Introduced by 225071e2e67fb65a0258397212f9826c9b25e078. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-12Add event copying for raw events.Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-12Switch to new XIEvent structures - no need for pointers anymore.Peter Hutterer
This removes all those pointers from event structures that were just there due to the pre-cookie struct size limit. Pointers remaining are only those that are of variable length (e.g. masks and valuator states). Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-12Remove XIFreeEventData - obsolete with cookie events.Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-12Add effective modifiers/group to events - require inputproto 1.9.99.13Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-08Split copy_classes and size_classes to avoid memory leakPeter Hutterer
The switch to cookie events introduced a memory leak in XIDeviceChangedEvents. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-08Use cookie events for XI2 events.Peter Hutterer
Instead of squashing the events directly into the XEvent use the new libX11 cookie events. This allows us to have larger events without the 96 byte restriction. Requires libX11 1.2.99.1 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-08Add next_block() call to advance pointers over memory.Peter Hutterer
Simple call to get the pointer to the next field when operating on a wire protocol struct or on a single-memory-block Xlib structure. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-17Axis and button labels should be called labels, not names.Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-16Protect button label copying against 64-bit Atom madness.Peter Hutterer
Datatype Atom is 8 bytes on 64 bit architectures, but it's always 4 bytes on the wire. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-16Include the current valuator state in XIQueryDevice.Peter Hutterer
2009-06-16XIButtonClass now includes a XIButtonState struct.Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-12Add sourceid to device classes.Peter Hutterer
2009-06-12XISelectEvents and XIGetSelectedEvents use "win" now instead of "window"Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-09XIHierarchyEvent should list num_info, not num_devices.Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-09Rename XICreateMaster to XIAddMaster for consistency.Peter Hutterer
add/remove is used for slave devices and for flags, so we should use it in XIChangeHierarchy as well. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-09Silence warning: missing prototype for copy_classesPeter Hutterer
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-09Remove CamelCase use from XIChangeHierarchy.Peter Hutterer
Everything else uses underscore notation. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-09Hierarchy changes should use "deviceid", not device.Peter Hutterer
Every other call/interface uses deviceid, so change for consistency. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-02Fix typo in Makefile.am, leading to the XI2 source skipping compilation.Peter Hutterer
Introduced with 59dc570e6ad4adab8066c7b8d2bff77cbf70bed4. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-02Rename remaining XI2 sources to XI<foobar>.cPeter Hutterer
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-02Return BadRequest from XIQueryVersion if XI2 isn't supported.Peter Hutterer
XIQueryVersion (like all other calls) makes sure XGetExtensionVersion is called beforehand anyway. So if that doesn't match 2.0 or higher, return BadRquest before issuing the real request (which would trigger a BadRequest error). This way, clients can use XIQueryVersion without having to set up the error handler. XIQueryVersion is now guaranteed to return the server-supported version. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-02Use Dont_Check for most XI2 requests.Peter Hutterer
If a client issues an XI2 request against a non-XI2 server it should generate a BadRequest error from the server. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-05-28Add support for Enter/FocusIn passive grabs.Peter Hutterer
2009-05-27Fix wrong pointer argument in _XIPassiveUngrabDevice.Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-05-25Add XIGetSelectedEvents.Peter Hutterer
2009-05-19XIPassiveGrab: take the address of modifiers for memcpy, not the value.Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-05-18XIQueryPointer: fix wrong reply extra data reading.Peter Hutterer
libXi does it differently than the server, so don't try to access &reply[1], instead use _XRead as it should be. Reported-by: Mark Dokter Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-05-18XIQueryPointer should return doubles for the FP1616 wire data.Peter Hutterer
2009-05-15Remove duplicated code paths in XIGetProperty.Peter Hutterer
XIGetProperty always returns in the specified format (8, 16, 32) and never in the Xlib's 64-bit long hackery. So we can clean this code up a bit. This doesn't affect XListProperties, it still returns an Atom list. Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
2009-05-14Return failed modifiers for passive XI2 grabs.Peter Hutterer
2009-05-14Update XIQueryPointer to include full modifier state.Peter Hutterer
2009-05-14Label major/minor version in XIQueryVersion as _inout.Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-05-12Adust to new device names (less "Device" in function names)Peter Hutterer
2009-05-12XISelectEvents, not the singular versionPeter Hutterer