summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-04-28kdrive: fix Xvfb build with separate libmain.Eamon Walsh1-1/+1
2009-04-28xfree86: restore default off for DontZapPeter Hutterer3-10/+8
Zapping is triggered by xkb these days, so note in the man page that it's the Terminate_Server action. Since it's XKB, personal preferences towards or against zapping should be achieved through xkb rulesets. If Terminate_Server is not in the xkb actions, then we can't zap anyway and we don't need a default of DontZap "on". This patch restores the old meaning of DontZap - disallow zapping altogether, regardless of XKB's current keymap. Ideally, this patch should be accompanied by b0f64bdab00db652e in xkeyboard-config. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-04-28test: add InternalEvent to core event conversion tests.Peter Hutterer1-0/+144
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-04-28test: add a simple test to verify device axis intialization.Peter Hutterer2-2/+85
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-04-28Add a test-suite for in-server unit-testing.Peter Hutterer4-0/+260
This patch adds a test/ directory that contains the setup for a unit-testing suite designed for in-server unit-testing. All functions available to the X server are available to the test binaries through static linking. This test suite uses the glib testing framework. Do not use glib calls outside of the test/ directory. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-04-28dix: remove all but main() from main.cPeter Hutterer11-377/+376
All other functions are pushed into where they seemed to fit. main.c is now linked separately into libmain.a and linked in by the various DDXs. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-04-27Solaris: use <sys/agpgart.h> instead of stale copy in Xorg sourcesAlan Coopersmith4-121/+7
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-04-28Make the cursor completely optionalSimon Farnsworth3-3/+19
For embedded use, it's convenient to be able to disable the cursor completely, without having to audit and fix up all your third-party code (e.g. Mozilla Firefox). Add -nocursor and -cursor server options to enable and disable the cursor. The default is still -cursor, but embedded users can run the server with -nocursor to hide the cursor regardless of what application developers do. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-04-27Fix obvious copypastaPierre Willenbrock1-2/+2
Reviewed-by: Ian Romanick <idr@freedesktop.org>
2009-04-27Export CompositeRegisterAlternateVisuals.Aaron Plattner4-4/+43
Drivers need this if they add visuals that require implicit redirection. Add a new SDK header, compositeext.h, to contain the prototype for this function.
2009-04-24DRI2: Implement protocol for DRI2GetBuffersWithFormatIan Romanick5-88/+284
This change implements the protocol for DRI2GetBuffersWithFormat, but the bulk of the differences are the changes to the extension / driver interface to make this function work. The old CreateBuffers and DeleteBuffers routines are replaced with CreateBuffer and DeleteBuffer (both singular). This allows drivers to allocate buffers for a drawable one at a time. As a result, 3D drivers can now allocate the (fake) front-buffer for a window only when it is needed. Since 3D drivers only ask for the front-buffer on demand, the real front-buffer is always created. This allows CopyRegion impelemenations of SwapBuffers to continue working. As with previous version of this code, if the client asks for the front-buffer for a window, we instead give it the fake front-buffer. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kristian Høgsberg <krh@redhat.com>
2009-04-24DRI2: Add interface for drivers to query DRI2 extension versionIan Romanick2-0/+27
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2009-04-24Correct fcntl(F_SETOWN) error check in non-Solaris sigio codeJoel Bosveld1-1/+1
commit 64b7f96dca accidentally inverted the comparison, could result in crashes on some systems later on. Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-04-24Add SIGIO/SIGPOLL support for SolarisAlan Coopersmith4-8/+42
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-04-24Add casts to generated entries in sdksyms.c to silence type mismatch warningsAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-04-24Fix byte swapping of XF86VidMode{Get,Set}GammaRampAlan Coopersmith1-10/+6
Fixes OpenSolaris Bug 8315: Xorg segfaults when screensaver fades in cross-endian xdmcp session <http://defect.opensolaris.org/bz/show_bug.cgi?id=8315> Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-04-24mi: remove superfluous check.Peter Hutterer1-1/+1
mieqProcessInputEvents doesn't process events from MDs anymore, so we don't need to check for pDev->isMaster. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-04-24input: propagate XTst events through virtual slave devices.Benjamin Close4-5/+176
A XTest virtual slave device pair (kbd/ptr) exists for every master device pair. This is so XTest events are correctly propogated via slave devices up to Master devices and the classes are correctly changed along the way. We add the XTest slave device pair to the Virtual Core pointer and provide a simple way of creating the devices. A XTest Slave Device is identified by the XTstDevicePrivateKey property being set in the devices devProperties XI events are still propagated through the matching device, in the hope the client knows what it is doing. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-04-22XQuartz: Localization updateJeremy Huddleston69-0/+69746
(cherry picked from commit 9435fc5e20e25ce66ec85bde033daff51f39f69c)
2009-04-22XQuartz: Make sure the bgMouseLocationUpdated state is consistentJeremy Huddleston1-18/+23
(cherry picked from commit 8fa8a8e1db60c8ac60d10f1f15517471d2291f77)
2009-04-23exa: add missing exa.h header includeDave Airlie1-4/+3
2009-04-23exa: missed exa.h changeDave Airlie1-0/+3
2009-04-23exa: add CreatePixmap2 hook for driver pixmaps.Dave Airlie1-4/+7
This adds a revised pixmap hook for driver pixmaps, which is required to support tiling on various chips. Signed-off-by: Dave Airlie <airlied@redhat.com>
2009-04-23exa: avoid offscreen pixmap swapped out flag for driver pixmapsDave Airlie1-0/+3
2009-04-22Bug#21324: Add quirk for Iiyama Vision Master 450Julien Cristau1-0/+5
Reported-by: Jeremy Henty <onepoint@starurchin.org> Signed-off-by: Julien Cristau <jcristau@debian.org>
2009-04-20DRI2: Send the version the code actually supportsIan Romanick1-2/+2
This prevents building an older server with a new dri2proto.h from resulting in a DRI2 extension module that lies about the version it supports. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2009-04-20DRI2: Add missing front-buffer flush callback.Ian Romanick1-0/+8
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2009-04-21dix: Change AllocMaster into AllocDevicePair, allow creation of SDs too.Benjamin Close3-10/+15
Allocating a slave device is essentially the same as allocating a master device. Hence we rename AllocMaster to AllocDevicePair and provided the ability to indicate if a master or slave device pair is required. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-04-21dix: don't allow more than MAX_VALUATORS on one device.Peter Hutterer2-0/+10
Some keyboards (?) advertise more than MAX_VALUATORS axes. Parts of the internal event delivery relies on not having more than MAX_VALUATOR axes, so let's cap it down. If there's real devices that require more than the current 36, I'm sure we can bump this up. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-04-20Add XI 1.5 event and requests to protocol.txtJulien Cristau1-0/+5
2009-04-20Add RandR 1.3 requests to protocol.txtJulien Cristau1-0/+7
2009-04-20xkb: set bell_func in InitKeyboardDeviceStruct.Colin Harrison1-0/+1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-04-20Add newline to some LogMessage strings.Werner LEMBERG2-5/+7
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-04-19os: don't malloc memory in LogVMessageVerb.Peter Hutterer1-16/+6
LogVWrite is limited to a buffer size of 1024, so we don't loose anything here by truncating. This way we can use LogVMessageVerb (and xf86Msg and friends) during signal handlers with the normal message types. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Acked-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-04-19xkb: Add XkbFreeRMLVOSet helper function.Peter Hutterer2-11/+24
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Acked-by: Dan Nicholson <dbn.lists@gmail.com>
2009-04-17randr: Accept gamma set requests from XF86VidMode clients tooAdam Jackson3-2/+67
2009-04-17[kdrive] Fix rotation of pointerDavid Jander1-2/+2
Rotation matrix for pointer coordinates was incomplete and pointers with absolute coordinates did not work correctly in xserver (kdrive) when the sceen was rotated other than by 0 degrees. Signed-off-by: David Jander <david.jander@protonic.nl> Signed-off-by: James Cloos <cloos@jhcloos.com>
2009-04-16security: Grant untrusted windows remove access on all windows.Eamon Walsh1-0/+5
This allows untrusted clients to destroy their own windows when they have been reparented by a trusted window manager.
2009-04-16security: Fix a crash caused by wrong ordering of format arguments.Eamon Walsh1-3/+4
2009-04-16security: Revert behavior of extension access for compatibility.Eamon Walsh1-14/+16
Previously, three extensions were defined as "trusted" by the extension: BIG-REQUESTS, XC-MISC, and XPrint. No other extensions were permitted to be used by untrusted clients. In commit 8b5d21cc1d1f4e9d20e5d5eca44cb1e60a419763 this was changed for some reason. Return to the old, compatible behavior.
2009-04-17xkb: strdup the values returned by XkbGetRulesDfltsPeter Hutterer1-0/+21
XkbGetRulesDftls may get a copy of what will later be freed when passed into XkbSetRulesDftls. On the second run of XkbGet/SetRulesDflts: XkbGetRulesDflts(rmlvo) rmlvo->rules = current-rules XkbSetRulesDflts(rmlvo) free(current-rules) current-rules = strdup(rmlvo->rules) Leaving us with garbage in current-rules. This patch requires callers of XkbGetRulesDflts to free the associated memory. See also http://lists.freedesktop.org/archives/xorg-devel/2009-February/000305.html Reported-by: Benjamin Close <Benjamin.Close@clearchain.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Acked-by: Benjamin Close <Benjamin.Close@clearchain.com> Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2009-04-17input: allow NULL as XkbRMVLOSet in InitKeyboardDeviceStruct.Peter Hutterer6-28/+16
Virtually all callers use XkbGetRulesDefault(&rmlvo); InitKeyboardDeviceStruct(..., rmlvo); Let's save them the trouble and accept NULL as a hint to take the default RMLVO. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Acked-by: Benjamin Close <Benjamin.Close@clearchain.com> Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2009-04-17dix: remove un-used parameter "core" from AllowSomePeter Hutterer3-18/+16
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-04-17Xi: fix a typo in a #ifdefPeter Hutterer1-3/+3
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-04-15DRI2: Don't leave empty entries in private->buffersIan Romanick1-8/+9
This should fix bug #21130. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2009-04-15One = is more than adequate here. Make is sh safe.Robert Noland1-2/+2
2009-04-15Fix build on hurd-i386Samuel Thibault5-21/+15
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=523970
2009-04-15randr12: looking up these bits if randr isn't initialised is bad.Dave Airlie1-2/+4
When xinerama is enabled we don't get randr protocol, but the driver might still want randr internals
2009-04-15xfree86: Remove device from inputInfo.devices if ActivateDevice failed.Ander Conselvan de Oliveira1-0/+1
After the call to xf86ActivateDevice, the new device will be added to inputInfo.devices. However, if the subsequent call to ActivateDevice fails, the correponding InputInfoRec for the device is deleted but an entry still remains in inputInfo.devices. This might lead to a server crash later on (on InitAndStartDevices for instance) when the device control proc would be called for an invalid device. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-04-15xfree86: don't synthesise a mouse section if synaptics devices are found.Peter Hutterer1-1/+2
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>