xserver-multidpi/hw/xquartz
Chase Douglas 65c0fc81eb Add support for per-axis valuator modes (Relative/Absolute)
The XI2 protocol supports per-axis modes, but the server so far does
not. This change adds support in the server.

A complication is the fact that XI1 does not support per-axis modes.
The solution provided here is to set a per-device mode that defines the
mode of at least the first two valuators (X and Y). Note that initializing
the first two axes to a different mode than the device mode will fail.

For XI1 events, any axes following the first two that have the same mode
will be sent to clients, up to the first axis that has a different mode.
Thus, if a device has relative, then absolute, then relative mode axes,
only the first block of relative axes will be sent over XI1.

Since the XI2 protocol supports per-axis modes, all axes are sent to the
client.

Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
2010-10-22 13:37:57 +10:00
..
bundle XQuartz: Localization updates 2010-09-11 14:25:21 -07:00
doc XQuartz: Customize the NSDefaults id in the man file. 2010-04-11 16:30:22 -07:00
GL XQuartz: GLX: Don't mangle __GLXDrawable's pDraw 2010-07-28 18:11:38 -07:00
mach-startup Replace malloc/strlen/strcpy with strdup. 2010-08-27 19:05:48 -04:00
pbproxy XQuartz: xpbproxy: Don't take down the whole server on an IO error 2010-07-29 11:41:32 -07:00
xpr XQuartz: RandR: Don't change the rootless preference when changing RandR mode 2010-09-28 09:50:35 -07:00
applewm.c XQuartz: Move use of static dispatch procs after declaration 2010-09-28 09:50:34 -07:00
applewmExt.h XQuartz: ProcAppleWMAttachTransient to play nice with the new Dock in SL 2009-07-03 19:46:00 -07:00
darwin.c Add support for per-axis valuator modes (Relative/Absolute) 2010-10-22 13:37:57 +10:00
darwin.h Change the devPrivates API to require dixRegisterPrivateKey 2010-06-05 19:23:03 -07:00
darwinEvents.c Abstract valuator masks through a set of APIs. 2010-10-22 11:02:48 +10:00
darwinEvents.h XQuartz: Transition from xEvent based mieq to InternalEvent 2009-09-27 23:31:07 -07:00
darwinfb.h XQuartz: Unify how we set our bitmasks for visuals 2009-07-31 15:34:13 -07:00
darwinXinput.c input: Purge AddOtherInputDevices DDX hook. 2010-09-01 15:26:52 +10:00
keysym2ucs.c Darwin: Flattened quartz into darwin, renamed darwin xquartz 2007-12-05 20:32:40 -08:00
keysym2ucs.h Darwin: Flattened quartz into darwin, renamed darwin xquartz 2007-12-05 20:32:40 -08:00
Makefile.am XQuartz: RandR: Implement basic RandR functionality. 2010-09-28 09:50:34 -07:00
pseudoramiX.c Delete panoramiXdataPtr: it's redundant. 2010-06-03 14:03:23 -07:00
pseudoramiX.h Darwin: Flattened quartz into darwin, renamed darwin xquartz 2007-12-05 20:32:40 -08:00
quartz.c XQuartz: RandR: Refactor legacy mode-switching to be better integrated with RandR 2010-09-28 10:09:11 -07:00
quartz.h XQuartz: RandR: Refactor legacy mode-switching to be better integrated with RandR 2010-09-28 10:09:11 -07:00
quartzAudio.c XQuartz: RandR: Don't change the rootless preference when changing RandR mode 2010-09-28 09:50:35 -07:00
quartzAudio.h XQuartz: Purge redundant QuartzBell 2009-08-05 16:17:01 -07:00
quartzCocoa.m XQuartz: Remove some dead code. 2010-07-13 08:27:36 -07:00
quartzCommon.h XQuartz: RandR: Don't change the rootless preference when changing RandR mode 2010-09-28 09:50:35 -07:00
quartzKeyboard.c XQuartz: RandR: Don't change the rootless preference when changing RandR mode 2010-09-28 09:50:35 -07:00
quartzKeyboard.h XQuartz: Add a defaults option to toggle Alt / Mode_switch 2010-04-11 16:30:19 -07:00
quartzRandR.c XQuartz: RandR: Refactor legacy mode-switching to be better integrated with RandR 2010-09-28 10:09:11 -07:00
quartzRandR.h XQuartz: RandR: Refactor legacy mode-switching to be better integrated with RandR 2010-09-28 10:09:11 -07:00
quartzStartup.c Xquartz: Removed include directive for removed header 2008-07-11 10:13:06 -07:00
sanitizedCarbon.h XQuartz: Handled sanitization of namespace better 2008-04-18 20:07:55 -07:00
sanitizedCocoa.h XQuartz: Handled sanitization of namespace better 2008-04-18 20:07:55 -07:00
threadSafety.c XQuartz: spewCallStack is noop on Tiger now... 2008-11-21 10:59:41 -08:00
threadSafety.h XQuartz: Cleaned up startup and thread creation a tad. 2008-04-26 19:21:05 -07:00
X11Application.h XQuartz: RandR: Don't change the rootless preference when changing RandR mode 2010-09-28 09:50:35 -07:00
X11Application.m XQuartz: RandR: Refactor legacy mode-switching to be better integrated with RandR 2010-09-28 10:09:11 -07:00
X11Controller.h XQuartz: Add a GUI preference for the Alt / Mode_switch toggle 2010-04-11 16:30:25 -07:00
X11Controller.m XQuartz: RandR: Don't change the rootless preference when changing RandR mode 2010-09-28 09:50:35 -07:00