Peter Hutterer
07806f4081
Xi: Add SetClientPointer request handling.
2007-03-09 15:45:25 +10:30
Eamon Walsh
fe05ba75a1
devPrivates rework: pass address of pointer to private callbacks instead of
...
the pointer itself.
2007-03-08 12:14:30 -05:00
Eamon Walsh
b9cff1670f
Add ResourceStateCallback similar in function to ClientStateCallback.
2007-03-08 12:13:52 -05:00
Eamon Walsh
2fcb45eb5d
devPrivates rework: redo field offset registration, drop RC_PRIVATES class.
2007-03-08 12:13:36 -05:00
Eamon Walsh
947f8d249b
devPrivates rework: redo interface again, dropping parent and type parameters
...
as well as preallocation routine.
2007-03-08 12:13:18 -05:00
Eamon Walsh
c45f676208
devPrivates rework: hook up new mechanism in backwards-compatibility mode
...
on existing structures that support devPrivates.
2007-03-08 12:12:51 -05:00
Peter Hutterer
b3b2a6a0d4
dix: Check if client has a grab on any other device before mouse/kbd
...
event is delivered to the client. Client's don't cope well with
receiving core events from other devices when having a grab on a
pointer or keyboard.
2007-03-08 22:16:17 +10:30
Peter Hutterer
63169ce52d
dix: remove 'register' keyword for all variables.
2007-03-08 17:50:25 +10:30
Peter Hutterer
ceca5670fe
dix: Each device needs to differ between a core grab and an XI grab,
...
otherwise a Xi grab may overwrite or release a core grab.
Replace grab and associates with coreGrab and deviceGrab structures,
adjust rest of dix/Xi/etc to compile.
xfree86: Don't check for core devices, we'll have the virtual ones anyway.
If we check, the first mouse device is duplicated and sends
double events.
2007-03-08 17:17:23 +10:30
Eamon Walsh
b5fde366e2
Properly free device devPrivates - memory leak fix.
2007-03-07 12:29:55 -05:00
Eamon Walsh
aaef4d6a41
devPrivates rework: move reset functions into a single call.
2007-03-07 09:57:02 -05:00
Eamon Walsh
bb111291d8
Merge branch 'master' into XACE-SELINUX
2007-03-07 09:03:46 -05:00
Peter Hutterer
537bc2ead4
Xi: Don't deactivate core grabs from non-core button/key releases.
...
dix: set coreGrab flag for grabs caused by GrabPointer and button presses.
remove virtual core devices from device list, only real devices are in
the list now.
Auto-pair each keyboard with a real pointer if one is available,
provides multiple keyboards automatically after startup if devices
are configured.
fix GuessFreePointerDevice() to do what it's supposed to do.
mi: fix: call miPointerMove from miPointerWarpCursor.
fix: remove unused id field from miCursorInfoRec
don't update sprite for virtual core pointer.
2007-03-07 18:19:20 +10:30
Eamon Walsh
81526232bc
remove PIXPRIV check as this flag is always set.
2007-03-06 17:19:11 -05:00
Eamon Walsh
a7cd53deb9
remove PIXPRIV checks as this flag is always set.
2007-03-06 17:05:03 -05:00
Eamon Walsh
74175e0af7
devPrivates rework: remove some debugging code from dixFreePrivates.
2007-03-05 12:34:37 -05:00
Eamon Walsh
23fc429aad
Merge branch 'master' into XACE-SELINUX
2007-03-05 12:18:54 -05:00
Eamon Walsh
e684824709
devPrivates rework: redo interface and implementation.
2007-03-05 11:50:45 -05:00
Peter Hutterer
39aa791771
dix: Add GuessFreePointerDevice(). Runs through device list and tries to
...
find a pointer that hasn't been paired yet.
xfree86: Use GuessFreePointerDevice() for newly connected non-sprite devices.
2007-03-05 15:31:16 +10:30
Peter Hutterer
1f0075786f
Merge branch 'master' into mpx
...
Conflicts:
configure.ac
dix/getevents.c
hw/xfree86/ramdac/xf86Cursor.c
mi/mipointer.c
xkb/xkbUtils.c
2007-03-05 12:37:17 +10:30
Peter Hutterer
12175b668a
o fix minor error in comment for GetPointerEvents()
2007-03-03 13:57:39 +10:30
Peter Hutterer
57aa5e908d
dix, Xext, Xtrap, Xi: replace inputInfo.pointer with PickPointer where
...
possible. More replacements to come.
2007-03-02 17:14:37 +10:30
Peter Hutterer
e43b8a4e40
dix: Add ClientPointer to client, used for picking which pointer to use in
...
ambiguious request. PickPointer and PickKeyboard are used for getting
the appropriate pointer when situation is unclear.
Fix some issues with InitializeSprite.
dix, xfree86: Remove last traces of InitSprite.
2007-03-02 15:21:46 +10:30
Eamon Walsh
74f1de1de9
devPrivates rework: unhook resource system; will try a different approach.
2007-03-01 12:17:29 -05:00
Peter Hutterer
43bd35fcf8
dix: Remove InitSprite, work can be done by InitializeSprite.
...
Free sprite struct if a spriteOwner is paired.
xfree86: Use PairDevices instead of passing booleans around when creating a
sprite.
Xext: Switch back to using LookupPointer/KeyboardDevice instead of
inputInfo.xyz.
2007-03-01 17:19:37 +10:30
Eamon Walsh
81372f9096
devPrivates rework: hook up new interface in resource system; add new
...
resource-adding function that takes an additional ScreenPtr argument.
2007-02-23 13:23:12 -05:00
Eamon Walsh
16f2b8892d
devPrivates rework: add new interface implementation.
2007-02-23 13:22:46 -05:00
Peter Hutterer
4b8b0e377a
Xi: Add access control request handling.
...
dix: New file access.c to handle all access control for devices.
2007-02-22 20:00:59 +10:30
Eamon Walsh
9a3eb0357e
devPrivates rework: add RC_PRIVATES class, make ResourceRec visible in
...
the API, and add extra fields and structure supporting private storage.
2007-02-21 07:46:44 -05:00
Peter Hutterer
cd0af7a785
Xi, dix: Only one client at a time can change the pointer-keyboard pairing,
...
using xRegisterPairingClient request.
2007-02-21 10:08:41 +10:30
Ben Byer
81444486be
autoconf goodness for XDarwin, courtesy of pogma
2007-02-17 02:23:11 -08:00
Ben Byer
cf4994b0db
dix mods for Darwin
2007-02-17 01:21:43 -08:00
Peter Hutterer
f6c3b9fa97
xfree86: mouse and keyboard hotplugging support. New mouse devices will get
...
new cursors, keyboard devices use VCP's focus until paired.
2007-02-15 13:51:20 +10:30
Peter Hutterer
d570ff7c81
fix: WarpCursor needs to send MotionNotify.
2007-02-15 10:28:55 +10:30
Peter Hutterer
25104ed2e6
dix: fix typo in condition.
2007-02-14 11:26:53 +10:30
Peter Hutterer
33ef546b94
dix: Clean up GetPointerEvents. If pDev == inputInfo.pointer, assume that
...
we do not want Xi events.
mi: Remove POINTER_CORE_ONLY flag.
2007-02-14 11:18:43 +10:30
Peter Hutterer
7cd73b00a2
dix: If POINTER_CORE_ONLY is set, GetPointerEvents() only creates a core event
...
mi: fix: Create motion event in miPointerMoved
2007-02-05 14:48:48 +10:30
Peter Hutterer
4aaaa70d1b
Xi: Adding ChangePointerKeyboardPairing request
...
Adding PointerKeyboardPairingChanged event
Correct error values for XWarpDevicePointer
dix: Adding device argument to SendMappingNotify
Adding spriteOwner flag to devices
2007-01-29 18:23:24 +10:30
Peter Hutterer
15a81b6325
Merge branch 'master'
2007-01-28 17:18:57 +10:30
Peter Hutterer
cc3d66d4a5
o fix minor error in comment for GetPointerEvents()
2007-01-28 17:08:17 +10:30
Peter Hutterer
3759254c09
Merge branch 'master'
2007-01-28 17:05:55 +10:30
Peter Hutterer
ba547d4f6a
mi: Quick fix to stop segfault on non-core keyboards.
2007-01-12 14:42:02 +10:30
Peter Hutterer
5e2f8dee63
mi: remove core pointer special handling. No event has core pointer as
...
device now.
dix: zero pSprite memory, stop segfaults on server restart.
2007-01-11 14:05:39 +10:30
Peter Hutterer
ea82333dc1
Xi: add missing call for SProcXChangeDeviceCursor
...
add DeviceEnterNotify and DeviceLeaveNotify
fix: QueryDevicePointer crashed if called with keyboard device
2007-01-10 14:52:13 +10:30
Michel Dänzer
282a4dcaab
Attempt to fix drawable type checks in dixLookupDrawable().
...
Not sure this is 100% correct either, but it fixes at least one reproducible
crasher where it returned a pixmap to dixLookupWindow().
2007-01-08 19:22:41 +01:00
Peter Hutterer
95e1a88050
Xi: Adding ChangeDeviceCursor request
2007-01-08 12:31:18 +10:30
Peter Hutterer
05f915050c
dix/events: take screen number, not pointer, in PostSyntheticMotion
...
Since we were using PostSyntheticMotion incorrectly anyway, update the
declared API to match.
2006-12-27 16:38:06 +00:00
Eamon Walsh
d9e079d2a3
Zero out client devPrivates on allocation.
2006-12-22 13:07:09 -05:00
Peter Hutterer
202b46eb6b
xfree86: Changing "IsMPDevice" to "SharedPointer" option. Devices will default
...
to MP devices.
Xi: Adding QueryDevicePointer request/reply
Adding WarpDevicePointer request/reply
2006-12-20 13:05:53 +10:30
Peter Hutterer
ca5ebe3971
Merge branch 'master' of git://anongit.freedesktop.org/git/xorg/xserver
2006-12-19 10:51:01 +10:30