Commit graph

155 commits

Author SHA1 Message Date
Peter Hutterer
6b61bef5da Mirror the core enter/focus modes and add the passive grab mode.
If an enter/focus grabs activates (or deactivates), send an extra set of
enter/focus in (or leave/focus out) events to the grabbing client with mode
XIPassiveGrabNotify.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-05-28 14:47:49 +10:00
Peter Hutterer
1b2dc24bf5 Add Enter/FocusIn passive grabs.
Same behaviour as button/keysym grabs but triggered on enter/leave and
focus in/out events.
2009-05-27 13:35:57 +10:00
Peter Hutterer
d0c6633f7b XI2proto.txt: remove one more keycode mentioning, fix typo 2009-05-27 13:16:36 +10:00
Peter Hutterer
31f492bf94 Add XIGetSelectedEvents request and reply.
Counterpart to XISelectEvents, used to retrieve event masks from the server.
2009-05-25 15:22:15 +10:00
Benjamin Close
f065f6c12a XI2proto.h: fix two comments referring to the old naming scheme.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-05-19 11:27:03 +10:00
Peter Hutterer
3aca2d6ba5 inputproto 1.9.99.9 2009-05-16 11:49:35 +10:00
Peter Hutterer
8c28723677 Document naming conventions for XI2proto.h. 2009-05-16 11:49:35 +10:00
Peter Hutterer
b32e5830c0 XI2proto: define Window, Cursor, Atom and Time as uint32_t.
Since we're using stdint in the rest of the file, might as well ignore
CARD32 here.
2009-05-16 11:49:34 +10:00
Peter Hutterer
f4f09d40e0 XI2.h: remove XI2Mask, add XISetMask and friends.
XISetMask, XIClearMask, XIMaskIsSet serve to set, clear or check a bit in
the provided array.
XIMaskLen is a macro to get the minimum length of a mask for a given event
type.

They are expected to be common ways to deal with event masks, i.e. clients
will do:

unsigned char mask[XIMaskLen(XI_ButtonRelease)] = {0};
XISetMask(mask, XI_ButtonPress)
XISetMask(mask, XI_ButtonRelease)

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-05-16 11:49:34 +10:00
Peter Hutterer
0ae6581bc6 Add XIAnyButton and XIAnyKeysym. 2009-05-16 11:49:34 +10:00
Peter Hutterer
4cc6992b08 XIQueryPointer needs to include sensible button/modifier state.
This includes shuffling the xXIModifierInfo and xXIGroupInfo structs to the
common structs section.
2009-05-14 12:13:45 +10:00
Peter Hutterer
d041f30777 Add an introduction to XI2proto.txt 2009-05-14 10:29:49 +10:00
Peter Hutterer
e1138da902 XI2proto.txt: remove more mentioning of keycode grabs 2009-05-12 19:24:31 +10:00
Peter Hutterer
7aba20ed4c Remove superfluous "Device" from protocol requests and events.
Anything with prefix XI is per-device anyway.
2009-05-12 19:21:12 +10:00
Peter Hutterer
12635cbd4a Add per-device flags to XIDeviceHierarchyEvents 2009-05-12 16:14:01 +10:00
Peter Hutterer
886d2aceb7 Define Cursor as CARD32.
Reported-by: Benjamin Close <benjamin.close@clearchain.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-05-12 13:46:20 +10:00
Peter Hutterer
32277164bc XI2proto.h: doxygen-ify 2009-05-11 14:51:12 +10:00
Peter Hutterer
e9dfa40155 XI2proto.h: s/uint32_t/Time/ where appropriate 2009-05-11 13:46:53 +10:00
Peter Hutterer
a47a2b5084 Prefix all XI2 constants with "XI" -> inputproto 1.99.9.8
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-05-07 16:50:50 +10:00
Peter Hutterer
2edc35c032 Add XI2 property requests.
Basically the same as XI 1.5, save the 16 bit deviceids.
2009-05-07 16:50:50 +10:00
Peter Hutterer
504b480c94 XI2: add passive grabs.
Most notably XI2 provides keysym grabs instead of keycode grabs.
2009-05-07 16:50:47 +10:00
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