summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-01-13dix: fix WarpPointer calls for devices with custom valuator ranges (#19297)Peter Hutterer4-9/+27
If the MD's lastSlave was a devices with custom axes ranges, then a WarpPointer would position the cursor at the wrong location. A WarpPointer request provides screen coordinates and these coordinates were scaled to the device range before warping. This patch consists of two parts: 1) in the WarpPointer handling, get the lastSlave and post the event through this device. 2) assume that WarpPointer coordinates are always in screen coordinates and scale them to device coordinates in GPE before continuing. Note that this breaks device-coordinate based XWarpDevicePointer calls (for which the spec isn't nailed down yet anyway) until a better solution is found. X.Org Bug 19297 <http://bugs.freedesktop.org/show_bug.cgi?id=19297> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-01-13dix: EnqueueEvent and PlayReleasedEvent need to handle DeviceMotionNotifiesPeter Hutterer1-4/+4
No MotionNotify events in the processing anymore, so let's have them treat DMN instead. Reported by Thomas Jaeger.
2009-01-13require randrproto 1.2.99.3Julien Cristau1-1/+1
2009-01-12Xi: add XATOM_FLOAT to server-defined properties.Peter Hutterer3-1/+64
This property is used to denote type float for input properties. Such properties can be accessed easily through the XIPropToFloat() function. Code originally written by Simon Thum. Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
2009-01-12Xi: add XIPropToInt() auxiliary function.Peter Hutterer2-0/+74
Converts an XIPropertyValuePtr to an integer, provided that type and format is right. Code originally written by Simon Thum. Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
2009-01-12dix: drop x/y back into last.valuators before updating the history (#19285)Peter Hutterer1-3/+3
positionSprite needs to scale to screen coordinates and in the process of doing so alters dev->last.valuators[0:1]. Drop the real coordinates back after finishing and before updating the motion history. This way, we don't push the screen coordinates into the motion history. X.Org Bug 19285 <http://bugs.freedesktop.org/show_bug.cgi?id=19285>
2009-01-11XQuartz: Don't need explicit Activate/EnableDevice in InitInputJeremy Huddleston2-12/+0
(cherry picked from commit b1d29784410b3b93037e5636f336ba608d8ad6e3)
2009-01-11mieq: Avoid possible race condition whereby one thread might call ↵Jeremy Huddleston1-2/+9
mieqEnqueue before InitAndStartDevices finishes This is more of a hack around the problem. This is something that will need to be addressed in a more structured manner with the multi threaded input efforts. (cherry picked from commit 3c596c061e75848cfa76dd9259c23a3f3a67444c)
2009-01-11XQuartz: Only call DarwinUpdateModKeys when neededJeremy Huddleston3-4/+15
Previously, we were calling it on almost every itteration through sendX11Event (cherry picked from commit 6461729647ff4441d80811e73f0c0d2f108f2700)
2009-01-11XQuartz: Comment explaining the 0x10 flag for [e data2]Jeremy Huddleston1-1/+1
(cherry picked from commit 3c695280641c1205b97d3bb9f1d5e15a19cfa45f)
2009-01-11XQuartz: Add locking to make mieq thread safe on OSXJeremy Huddleston3-1/+68
(cherry picked from commit 7a8d2266861e74176b5310b83652a9c10a170494)
2009-01-11XQuartz: misc 1.6 updates (still --disable-glx)Jeremy Huddleston5-26/+19
rlAccel is not longer compatable, and it's not worth fixing Don't override DeviceCursorInitialize with a noop Don't do a SwitchCoreKeyboard (which wasn't even needed in the first place) (cherry picked from commit c137f681680e1d04b1513a8be68aeda4d1c56fd5)
2009-01-11Apple: Don't use DRI2Jeremy Huddleston1-0/+2
(cherry picked from commit a1d35cee5907a76977ee43c49cb55c8f411c9794)
2009-01-11XQuartz: Bundle version 2.4.0Jeremy Huddleston1-2/+2
(cherry picked from commit 3a3ccf5354e4275abe9d01f41a92602df5d690dc)
2009-01-11os: don't mix declarations and codeJulien Cristau1-1/+1
2009-01-11os: backtrace() returns int, not size_tJulien Cristau1-1/+1
2009-01-11os: ANSI cleanupsJulien Cristau2-6/+2
2009-01-11randr: RRSetPrimaryOutput can be staticJulien Cristau1-1/+1
2009-01-11xkb: ANSI cleanupJulien Cristau1-1/+1
2009-01-11mi: don't mix declarations and codeJulien Cristau2-3/+4
2009-01-11mi: ANSI cleanupsJulien Cristau3-4/+3
2009-01-11xnest: only define ddxBeforeReset if neededJulien Cristau1-0/+2
2009-01-11xnest: ANSI cleanupsJulien Cristau3-6/+6
2009-01-11xfree86: linuxPci.c needs a prototype for xf86AccResFromOSJulien Cristau1-0/+1
2009-01-11xfree86: use %zu to format size_t argumentsJulien Cristau1-1/+1
2009-01-11xfree86: don't mix declarations and codeJulien Cristau3-3/+3
2009-01-11xfree86: ANSI cleanupsJulien Cristau19-62/+56
2009-01-11Xvfb: ANSI cleanupsJulien Cristau2-6/+6
2009-01-11dix: don't mix declarations and codeJulien Cristau1-2/+2
2009-01-11dix: fix cast from pointer to integerJulien Cristau1-1/+1
2009-01-11dix: ANSI cleanupsJulien Cristau3-14/+7
2009-01-11config: ANSI cleanupsJulien Cristau1-2/+2
2009-01-11Xi: fix missing declaration of XkbSetRulesDfltsJulien Cristau1-0/+4
2009-01-11xsync: make SyncAlarmCounterDestroyed staticJulien Cristau1-1/+1
2009-01-11Xext: ANSI cleanupsJulien Cristau10-254/+124
2009-01-11xfree86/linux: fix log flood on acpid open errorJulien Cristau1-2/+6
When we can't open the acpid socket, warn once, not once every second
2009-01-10XQuartz: GL: Set the __GLXconfig renderType to GLX_RGBA_BIT.George Staplin1-1/+1
(cherry picked from commit 3c14546f58f8a138fe67c9cacc3bd0b7fa90c29a)
2009-01-10XQuartz: GL: Make many more fbconfigs and visuals available for the 1.5 branch.George Staplin1-261/+190
Use a __GLXconfig linked list struct to store the configurations for the fbconfigs and visuals in a pGlxScreen. Also, remove the __GLXvisualConfig/GlxSetVisualConfigs code that isn't used anymore. There is more code we can remove later, but I want to do that in separate commits. (cherry picked from commit 94162b0f8a25267aca280d25e216cc6bde47da6e)
2009-01-10XQuartz: Update padding in appledristr. This shouldn't change how the ↵Jeremy Huddleston1-1/+1
struct ends up in memory, but should make it more obvious for human eyes (cherry picked from commit f7b6c1907c326a1befd8b5c8a1d311d551e8670f)
2009-01-09avoid a potential endless loop.Xiang, Haihao1-2/+6
Previously it is possible that creating rotation data, then cleaning up and creating again so that pScreen->BlockHandler and xf86_config->BlockHandler all point to xf86RotateBlockHandler. See bug #19343.
2009-01-09Xext: Send out correct events in ProcXTestFakeInputThomas Jaeger1-1/+1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-01-09Xi: call CheckMotion for floating SDs too.Peter Hutterer1-1/+1
CheckMotion updates the sprite position so we need to call it for all devices that have a sprite - including floating SDs (which have an invisible sprite).
2009-01-09Xext: don't accept DeviceValuator if the dev doesn't have valuators (in xtest)Peter Hutterer1-1/+1
Reported by Chris Ball.
2009-01-09dix: don't accept Button 0 presses in GPE.Peter Hutterer1-0/+1
2009-01-08XAA: Disable offscreen pixmaps by default.Adam Jackson1-3/+6
Say Option "XaaOffscreenPixmaps" to turn them back on. Apropos of bugs #13795 and #15098. But this still isn't correct.
2009-01-08dix: move focus handling into enterleave.c.Peter Hutterer6-281/+837
This commit moves the focus handling from events.c into enterleave.c and implements a model similar to the core enter/leave model. For a full description of the model, see: http://lists.freedesktop.org/archives/xorg/2008-December/041740.html This commit also gets rid of the focusinout array in the WindowRec, ditching it in favour of a local array that keeps the current focus window for each device. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-01-08dix: add a few auxiliary functions for the updated focus model.Peter Hutterer1-0/+54
SetFocusIn and SetFocusOut, including the static array to keep all focus windows. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-01-08dix: reduce FirstPointerChild complexityPeter Hutterer3-56/+10
Instead of keeping a flag on each window for the devices that are in this window, keep a local array that holds the current pointer window for each device. Benefit: searching for the first descendant of a pointer is a simple run through the array. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-01-08dix: remove now unused "exclude" parameter from FirstPointerChildPeter Hutterer1-15/+8
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-01-08dix: re-implement enter/leave model.Peter Hutterer1-279/+317
The old model was implemented based on a misunderstanding of NotifyVirtual and NotifyNonlinearVirtual events. It became complicated and was broken in some places [1]. This patch wipes this model completely. A much simplified implementation is provided instead. Rather than a top-down approach ("we have a tree of windows, which ones need to get which event") this one uses a step-by-step approach. For each window W between A and B determine the pointer window P as perceived by this window and determine the event type based on this information. This is in-line with the model described by Owen Taylor [2]. [1] http://lists.freedesktop.org/archives/xorg/2008-December/041559.html [2] http://lists.freedesktop.org/archives/xorg/2008-August/037606.html