Commit graph

134 commits

Author SHA1 Message Date
Peter Hutterer
5d60550fde XI2 spec: Add some more Grab/Ungrab/AllowEvents documentation. 2009-04-25 10:44:05 +10:00
Benjamin Close
6d28cb22ad Define the Cursor datasize correctly
On 64 bit machines, without Cursor defined Xlib would allocate 64 bits
rather than 32 to any structs using Cursor. This led to data not
correctly being available on the wire hence the Xserver would do strange
things. We hence define Cursor to what it should be and make sure
we undefine it after we've finished to users of XIproto.h aren't affected

Fix-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Close <Benjamin.Close@clearchain.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-04-22 12:45:13 +10:00
Paul "TBBle" Hampson
589dc6ffa5 Fix typo in XI2proto.txt
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-04-22 12:45:03 +10:00
Peter Hutterer
3380ae0ac0 Add XIAllowEvents.
Basically the same as the core protocol AllowEvents.
2009-04-20 13:37:21 +10:00
Peter Hutterer
3c273d7145 Change FP1616 into a single int32_t. 2009-04-19 22:29:00 +10:00
Peter Hutterer
8914a9a2a9 Add GrabDevice and UngrabDevice XI2 requests. 2009-04-19 22:28:57 +10:00
Peter Hutterer
1956df7e45 Revert "Add major/minor version as supported by client to GetExtensionVersionReq."
This reverts commit f6e41306f7.
Sending the supported version hidden in another request is potentially
dangerous, so let's not do it.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-04-10 14:56:50 +10:00
Peter Hutterer
55ee1f97d4 XI2proto.txt: fix typo
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-04-10 14:35:09 +10:00
Peter Hutterer
d5105dc851 We don't need to define KeyCode and Mask.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-04-10 14:18:01 +10:00
Peter Hutterer
75daa0db2c Undef Window, Time, etc. after usage again to avoid pollution.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-04-10 14:17:19 +10:00
Peter Hutterer
6c9785ea25 Remove IsFloating - we don't need this in XI 1.x anymore. 2009-03-20 15:32:07 +10:00
Peter Hutterer
069880638b Move XI_2_Major/Minor to XI2.h 2009-03-20 15:32:07 +10:00
Peter Hutterer
2570457174 Move AttachToMaster, Floating to XI2.h 2009-03-20 15:32:07 +10:00
Peter Hutterer
1d933800ac Move CH_* constants to xi2 2009-03-20 15:32:07 +10:00
Peter Hutterer
5aa07308a1 Remove XI2 requests from XIproto.h
All requests been moved to XI2proto.h. Only ExtendedGrabDevice is gone for
good.
2009-03-20 15:32:07 +10:00
Peter Hutterer
05f997e689 Bump to 1.9.99.7 2009-03-20 15:32:07 +10:00
Peter Hutterer
7a73c3c64b Add XISetDeviceFocus and XIGetDeviceFocus requests 2009-03-20 15:32:07 +10:00
Peter Hutterer
0ca1de737a Add focus events 2009-03-12 11:44:20 +10:00
Peter Hutterer
da74983b7d Add buttons + modifier/group information to enter/leave events. 2009-03-12 11:44:20 +10:00
Peter Hutterer
c9ebfba4a1 Define FP1616 as one int16_t, one uint16_t. 2009-03-12 11:44:20 +10:00
Peter Hutterer
2339bc5b0e ValuatorInfo moved to FP3232 2009-03-12 11:44:20 +10:00
Peter Hutterer
cac1bcbf6d Add FP3232 typedef. 2009-03-12 11:44:20 +10:00
Peter Hutterer
fc7f67959a XI2: remove button state from the RawEvent.
A RawEvent is supposed to represent the state posted by the device. If a
client needs button state, then the client must keep track of it.
2009-03-12 11:44:20 +10:00
Peter Hutterer
d2ba9af051 Split CH_ChangeAttachment into CH_AttachSlave and CH_DetachSlave
CH_ChangeAttachment is still there, but won't be for long.
2009-03-11 16:37:16 +10:00
Peter Hutterer
69f5b8a3ff Add XI2.h and XI2proto.h, and a few required defines to XI.h 2009-03-11 16:37:13 +10:00
Peter Hutterer
27dc5a8313 Add XI2 protocol specification document. 2009-02-26 15:18:30 +10:00
Peter Hutterer
f39d3c8d60 Whitespace cleanups.
Yep. Slow day today.
2009-02-26 15:16:58 +10:00
Paulo Cesar Pereira de Andrade
c2d426f232 Janitor: Correct make distcheck and dont distribute autogen.sh 2009-01-27 20:06:28 -02:00
Peter Hutterer
7203036522 Bump to 1.9.99.6. 2008-10-31 19:05:09 +10:30
Peter Hutterer
f806462949 PropertyNotify, move deviceid back to last byte.
This way, it can be type-cast to deviceKeyButtonPointer to extract the
deviceid, which is (aside from time) the only thing it has in common with
those anyway.
2008-10-31 19:05:00 +10:30
Peter Hutterer
90a86701e3 Remove window access protocol requests.
This is a bad idea. It didn't provide security and you can get the same
functionality as you did with normal event registration.
2008-10-31 16:32:18 +10:30
Julien Cristau
36c8a6f3fa Undef Atom after we're done so we don't pollute users of XIproto.h 2008-10-15 10:33:51 +02:00
Peter Hutterer
c919917e37 Make sure Atoms are defined as CARD32. 2008-10-15 10:35:58 +10:30
Peter Hutterer
2166b77ea6 Bump to 1.9.99.5. 2008-09-26 10:11:04 +09:30
Peter Hutterer
93c1ea035b Remove default properties (XI_PROP_MODE, XI_PROP_ENABLED)
These should be defined by the server, not the protocol.
2008-09-26 09:37:48 +09:30
Peter Hutterer
18ef04f8a2 Remove Configure/QueryDeviceProperty. 2008-09-19 09:06:48 +09:30
Peter Hutterer
c9454a8e84 Add XI_JOYSTICK type. 2008-09-19 09:06:48 +09:30
Peter Hutterer
20a0c8433e Don't include Xmd.h. 2008-09-18 15:00:01 +09:30
Peter Hutterer
3e7b663e7d inputproto 1.9.99.4
Backported device properties.
2008-08-15 15:01:16 +09:30
Peter Hutterer
fabe087ceb Protect against C++ includes. 2008-08-15 14:50:46 +09:30
Peter Hutterer
c2d47b04c5 Remove RCS tags, typo fix. 2008-08-15 14:24:18 +09:30
Peter Hutterer
7c9620d823 Back out Device Properties from XI 2, push into XI 1.5. 2008-08-15 14:24:15 +09:30
Alan Hourihane
54465c7433 bump to 1.99.9.3 2008-07-29 14:15:04 +01:00
Peter Hutterer
0daf8328cf Add DeviceControlChanged define.
This value is used for the devchange field in the DevicePresenceNotify event
when a device's control has been modified.
2008-07-29 09:08:04 +09:30
Alan Hourihane
0d300ce64c Bump to 1.9.99.2 for inputproto 2008-07-21 10:33:47 +01:00
Peter Hutterer
fe74239e93 Add #defines for XI_PROP_ENABLED, XI_PROP_MODE
These two props are expected to be supported by the server.
2008-07-13 20:49:51 +09:30
Peter Hutterer
5f68665108 Set IEVENTS back to 18, got set to 8 inadvertantly. 2008-07-09 18:28:26 +09:30
Peter Hutterer
bbbe35b351 Add XI device property requests and replies.
New requests:
ListDeviceProperties ... list all props of a device
QueryDeviceProperty  ... query meta-information about a property
ChangeDeviceProperty ... change the content of a property
DeleteDeviceProperty ... delete a property
GetDeviceProperty    ... retrieve a property

New event:
DevicePropertyChangedNotify ... the given property on the device has changed
2008-07-09 12:52:33 +09:30
Peter Hutterer
9f1f3ef7a3 Bump to 1.9.99.1. 2008-05-28 17:13:49 +09:30
Peter Hutterer
834c9ba8b4 Remove a leftover typedef, the code that requires it has since been removed.
Was part of the FakeDeviceData request, this request does not exist anymore.
2008-05-12 17:30:30 +09:30