summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-06-17Xi: Add support for sourceid in the device classes.Peter Hutterer5-0/+27
2009-06-17Xi: namespace XI2 files.Peter Hutterer21-39/+39
Some files (notably those merged with MPX before XI2 came along) didn't use a 'xi' prefix. This patch changes all of them to meaningful names. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-17xfree86: fix two compiler warnings in xf86vmode.cPeter Hutterer1-2/+2
xf86vmode.c:1578: warning: pointer targets in passing argument 1 of ‘SwapShorts’ differ in signedness ../../../../include/misc.h:231: note: expected ‘short int *’ but argument is of type ‘CARD16 *’ xf86vmode.c:1543: warning: unused variable ‘i’ Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-17xfree86: silence a few int10 compiler warnings.Peter Hutterer1-14/+14
'format ‘%#x’ expects type ‘unsigned int’, but argument 2 has type ‘CARD32’' and similar. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-16EDID: Carp about 1.4 monitors with no preferred refresh rateAdam Jackson1-2/+6
You would think, having finally tightened down the spec, that monitor vendors would bother to implement what the spec actually mandates. You would be wrong.
2009-06-15randr: fix typo in swapped dispatchAdam Jackson1-1/+1
2009-06-14Xi: fix wrong bit->byte conversion in ProcXIQueryPointerPeter Hutterer1-1/+1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-14Xi: remove un-used IsOn macro.Peter Hutterer1-3/+0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-14Xi: XISelectEvents/XIGetSelectedEvents use 'win' instead of 'window' now.Peter Hutterer1-4/+4
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-11randr: fix operation order so that rotation+transform worksBenjamin Defnet1-3/+3
The matrix multiply to combine rotation and projective transforms was being done in the wrong order. Signed-off-by: Keith Packard <keithp@keithp.com>
2009-06-12Add check for GNU ld in the test suite.Peter Hutterer1-1/+9
The GNU linker supports a -wrap option to wrap function calls at link-time. This allows for easy overriding of functions in the X server with stubs in the test suite. This functionality is only supported on the GNU linker and will be used extensively in the tests. Disable the tests if GNU ld is not available.
2009-06-12input: remove un-used "setter" argument from SetClientPointer.Peter Hutterer3-6/+4
It's obsolete, not likely to come back, let's drop it. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-12Xi: fix XISetClientPointer return values.Peter Hutterer1-4/+9
If SetClientPointer fails, the only reason may be that the device is not a pointer or that the device is an SD. Return BadDevice instead of BadAccess. (BadAccess is a leftover from the early times of the ClientPointer implementation when only one client was allowed to set it). If the window parameter doesn't name a valid window or client, return BadWindow. Finally, allow both master keyboards and master pointers as deviceid. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-12Xi: Fix XISetClientPointer swapping.Peter Hutterer1-0/+2
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-12Xi: sanitize ProcXIGetClientPointer.Peter Hutterer1-9/+8
This was quite old code and can be streamlined a bit. The new code is essentially the same as in ProcXISetClientPointer. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-12Xi: fix reply swapping in XIGetClientPointer.Peter Hutterer1-0/+1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-11vfb: Re-enable 30bpp supportAdam Jackson1-0/+6
2009-06-11xfree86: move didLock assignment down to where the function pointer is valid.Dave Airlie1-1/+1
crtc->funcs->lock is NULL, so it's no use calling it here. Move it down so it's actually defined before we use it. Introduced with 6f59a8160042ea145514fdcb410f17f33fd437c2. Tested-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-11Xi: store mask_len before swapping in ProcXIGetSelectedEvents.Peter Hutterer1-4/+3
Swapping the mask_len and then advancing the pointer by the swapped length is just a bad idea. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-11Xi: correct return buffer size for XIGetSelectedEvents.Peter Hutterer1-1/+1
The maximum number of bytes is calculated by the mask len, and the mask len is always in 4-byte units. XI2MASKSIZE however is in bytes. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-11Xi: XISetEventMask needs to clear the mask if len is 0Peter Hutterer1-1/+4
zero-length masks are supposed to clear the device's mask. ProcXISelectEvents passes these masks through directly, so we need to clear the bits here if such a mask is supplied. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-11Xi: XIGetSelectedEvents mustn't returned masks from non-existing devices.Peter Hutterer1-0/+9
Or devices the client doesn't have XACE permissions for. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-11Xi: ProcXIGetSelectedEvents must use WriteToClient for swapped data.Peter Hutterer1-4/+1
The data is already swapped before, so we just post it to the client as-is, without attempting to swap it again. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-11input: remove dependency on XI2 protocol for XI_LASTEVENT.Peter Hutterer4-6/+12
inputstr includes XI2proto.h for the sole purpose of XI_LASTEVENT. However, using XI_LASTEVENT in the server is prone to errors, if the server is recompiled against a newer version of the protocol it would bump this variable and associates bits, including potential ABI. This patch defines an XI2LASTEVENT for use in the server and removes the XI2proto.h require. XI2LASTEVENT is the current value of XI_LASTEVENT. This patch is required by components that require access to inputInfo (currently xf86-video-geode and xf86-video-cirrus) but should not have a require for the XI2 protocol. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-11Xi: rename ProcXISelectEvent to ProcXISelectEvents.Peter Hutterer3-7/+7
The request name has the plural, so let's do it here too. Purely cosmetic change. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-11Xi: start checking for invalid mask bits _after_ LASTEVENT.Peter Hutterer1-2/+2
Two issues that combined to false positives and false negatives. - The checking for invalid bits must be performed when there are enough bits that an event outside of LASTEVENT may be selected. - The first invalid bit is LASTEVENT + 1, not LASTEVENT. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-11Xi: XISelectEvents returns BadValue for num_masks == 0.Peter Hutterer1-0/+3
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-11Xi: XISelectEvents needs to be at least size 3, not exactly.Peter Hutterer1-1/+1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-11Xi: XIQueryDevice should use XIFooClass instead of the old FooClass defines.Peter Hutterer1-3/+3
This is merely a cosmetic change, the actual values are the same anyway. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-11Xi: get the class length before swapping.Peter Hutterer1-1/+2
Advancing by the already-swapped length lets our pointers point into nirvana. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-11Xi: Swapping 32 bit keycodes requires swapl, not swaps.Peter Hutterer1-1/+1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-11glx: fix open-coded linked list removal functionDave Airlie1-5/+11
OMG stab stab stab, YALL. removal function was made of crack, actually truncated the list from the one after the find point. However fixing this makes glean makecurrent fail with a GLX error.
2009-06-11KDrive: Warning fixesDaniel Stone2-17/+14
xEvent vs. InternalEvent confusion still reigns though. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2009-06-11KDrive: Xephyr: DRI: Warning fixesDaniel Stone1-22/+22
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2009-06-11OS: Fix compile warningsDaniel Stone1-5/+7
It's a marvel the sigaction() ever actually worked. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2009-06-11KDrive: Warning fixes and cleanupsDaniel Stone11-359/+32
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2009-06-10kdrive: undef PSEUDO8Adam Jackson1-14/+0
Whatever that was, it no longer is.
2009-06-10kdrive: Remove a lie about PCMCIA support.Adam Jackson1-9/+0
2009-06-10xephyr: Add -title option.Adam Jackson3-10/+39
2009-06-10Xming: Simplify logic for ownership release of native clipboardColin Harrison1-9/+3
Make the logic simpler for the ownership release of the Windows clipboard in winclipboardwrappers.c - We've already marked a selection as unowned if it is owned by our clipboard window Copyright (C) Colin Harrison 2005-2008 http://www.straightrunning.com/XmingNotes/ http://sourceforge.net/projects/xming/ Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2009-06-10Cygwin/X: Add a needed inputstr.hJon TURNEY1-0/+1
Add a needed inputstr.h to fix build after commit 6d4ffcc9e066bc7c49dcff1a2ff0111801c7286d Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2009-06-10input: move inputstr.h to where its needed.Dave Airlie2-1/+1
This stops inputstr.h being needed to be included by output drivers. Signed-off-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-09hw/xf86/modes: Set crtc mode/rotation/transform before calling set_mode_majorBenjamin Defnet1-3/+5
This moves code out of each implementation of set_mode_major and back into the X server. The real feature here is that the transform is now available in the crtc for use by either xf86CrtcRotate or whatever the driver wants to do. Without this change, the transform was lost for drivers providing the set_mode_major interface. Note that users of this API will want to stop smashing the transformPresent field, and could also stop setting mode/x/y/rotation for new enough X servers, but there's no reason to make that change as it will break things when running against older X servers. Signed-off-by: Keith Packard <keithp@keithp.com> Acked-by: Daniel Stone <daniel@fooishbar.org>
2009-06-09dix/randr: Add missing fields to SRR*NotifyEvent()Federico Mena Quintero1-2/+9
Also, remove redundant field swaps and make others match the order in which they are declared in the xRR*NotifyEvent structs. Signed-off-by: Federico Mena Quintero <federico@novell.com> Signed-off-by: Keith Packard <keithp@keithp.com>
2009-06-09cvt: Allow multiple-of-60Hz refresh rates for reduced blanking.Adam Jackson1-5/+8
Doing so generates the same timings as given in the DMT spec for 120Hz RB, so we should be set there. Other rates might be legal too but why push our luck.
2009-06-09require inputproto 1.9.99.11Peter Hutterer1-1/+1
2009-06-09Xi: hierarchy events have a num_info now instead of num_devices.Peter Hutterer2-5/+5
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-09Xi: change from XICreateMaster to XIAddMaster for consistency.Peter Hutterer1-2/+2
add/remove is used for slave devices and hierarchy flags. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-09Xi: return BadValue for XI_HierarchyChangd mask on devices.Peter Hutterer1-0/+7
This mask may only be selected for XIAllDevices. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-08Make RANDR 'set' timestamps follow client specified time. Bug 21987.Keith Packard2-2/+7
The lastSetTime value which indicates when the configuration within the server was last changed was not getting set in the appropriate RandR requests. Signed-off-by: Keith Packard <keithp@keithp.com>