gstreamer-omap:xserver.git
5 years agotest: fix two more failing FP3232 tests
Dave Airlie [Wed, 26 Oct 2011 22:38:45 +0000 (08:38 +1000)]
test: fix two more failing FP3232 tests

And put a comment in to explain why we're testing for a frac between .3 and
.6. We can't directly compare the frac since the floating/fixed point
conversion loses precision.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
5 years agoMerge remote-tracking branch 'whot/for-keith'
Keith Packard [Tue, 25 Oct 2011 05:09:00 +0000 (22:09 -0700)]
Merge remote-tracking branch 'whot/for-keith'

5 years agokdrive: check for null memory, fix OOB
Peter Hutterer [Tue, 25 Oct 2011 02:57:07 +0000 (12:57 +1000)]
kdrive: check for null memory, fix OOB

If key/value allocation failed, don't bother adding another InputOption. And
make sure the memory allocated is large enough for the trailing \0

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
5 years agoUse new FP1616/FP3232 conversion functions
Peter Hutterer [Thu, 20 Oct 2011 06:42:20 +0000 (16:42 +1000)]
Use new FP1616/FP3232 conversion functions

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
5 years agotest: fix test with new double -> fp3232 conversion functions
Peter Hutterer [Thu, 20 Oct 2011 06:49:28 +0000 (16:49 +1000)]
test: fix test with new double -> fp3232 conversion functions

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Tested-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
5 years agoXi: send DeviceChangedEvents when the scroll valuators change value
Peter Hutterer [Wed, 19 Oct 2011 03:17:51 +0000 (13:17 +1000)]
Xi: send DeviceChangedEvents when the scroll valuators change value

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
5 years agodix: accept a NULL master for CreateClassesChangedEvent
Peter Hutterer [Wed, 19 Oct 2011 02:28:37 +0000 (12:28 +1000)]
dix: accept a NULL master for CreateClassesChangedEvent

If a floating device changes, the master is NULL but we must still create a
DCE for it.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
5 years agoXi: ensure the deviceid for DeviceChangedEvents is always the right one
Peter Hutterer [Wed, 19 Oct 2011 02:11:16 +0000 (12:11 +1000)]
Xi: ensure the deviceid for DeviceChangedEvents is always the right one

If we're sending the event for a given device, make sure the deviceid is
that of the device.
This allows callers to use the same DCE for slave and master without having
to fiddle the DCE's internal fields.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
5 years agodix: pass the flags into the CreateClassesChangedEvent
Peter Hutterer [Tue, 18 Oct 2011 07:47:59 +0000 (17:47 +1000)]
dix: pass the flags into the CreateClassesChangedEvent

No effective functional changes, prep work for future patches.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
5 years agodix: drop unused argument from XISendDeviceChangedEvent
Peter Hutterer [Tue, 18 Oct 2011 07:41:29 +0000 (17:41 +1000)]
dix: drop unused argument from XISendDeviceChangedEvent

Instead of device and master (and just using master), drop the master
argument and let the callers pass in the device the event is to be sent for.

No effective functional changes.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
5 years agodix: add ScrollInfo to DeviceChangedEvents
Peter Hutterer [Tue, 18 Oct 2011 07:11:27 +0000 (17:11 +1000)]
dix: add ScrollInfo to DeviceChangedEvents

3304bbff9b4ed63f1a47410a5320a136420ba2c6 added smooth scrolling support for
pointer events and for XIQueryDevice but didn't add the matching parts to
XIDeviceChangedEvents.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
5 years agoxkb: Support noLock and noUnlock flags for LockMods
Andreas Wettstein [Thu, 11 Aug 2011 06:33:33 +0000 (16:33 +1000)]
xkb: Support noLock and noUnlock flags for LockMods

These flags are required by the XKB spec section 6.3.

Signed-off-by: Andreas Wettstein <wettstein509@solnet.ch>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
5 years agoxfree86 doc: replace driver "keyboard" with "kbd"
Peter Hutterer [Thu, 20 Oct 2011 23:09:55 +0000 (09:09 +1000)]
xfree86 doc: replace driver "keyboard" with "kbd"

We've deprecated keyboard a long time ago

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
5 years agoxfree86: use NewInputDeviceRequest for xorg.conf devices too
Peter Hutterer [Fri, 5 Aug 2011 04:48:02 +0000 (14:48 +1000)]
xfree86: use NewInputDeviceRequest for xorg.conf devices too

Only use one init path for input devices - through NIDR.

This requires that inp_driver and inp_identifier from the
XF86ConfInputRec are copied over into the options for NIDR to see them.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
5 years agodix: move #if statement to stop compiler warning
Peter Hutterer [Wed, 10 Aug 2011 04:37:41 +0000 (14:37 +1000)]
dix: move #if statement to stop compiler warning

ptrveloc.c: In function 'QueryTrackers':
ptrveloc.c:598:34: warning: variable 'used_offset' set but not used
[-Wunused-but-set-variable]

used_offset is used, but only in the debugging code. Move the #if statement
to ignore that warning.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
5 years agoxfree86: Fix a comment, the old function doesn't exist anymore
Peter Hutterer [Fri, 5 Aug 2011 04:05:58 +0000 (14:05 +1000)]
xfree86: Fix a comment, the old function doesn't exist anymore

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
5 years agoxfree86: use xf86AddNewOption instead of xf86addNewOption
Peter Hutterer [Wed, 10 Aug 2011 05:58:34 +0000 (15:58 +1000)]
xfree86: use xf86AddNewOption instead of xf86addNewOption

The former strdups for us. If the strdup fails we miss out on the
CorePointer option (default on anyway) and we're likely to fall over soon
anyway, so let's pretend this is the same behaviour.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
5 years agoinput: switch InputOption to use XF86OptionRec storage.
Peter Hutterer [Wed, 10 Aug 2011 04:38:58 +0000 (14:38 +1000)]
input: switch InputOption to use XF86OptionRec storage.

Use the same struct for both InputOption and XF86OptionRec so we don't need
to convert to and fro the two in the config backends.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Dan Nicholson <dbn.lists@gmail.com>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
5 years agokdrive: switch to new InputOption API.
Peter Hutterer [Tue, 25 Oct 2011 01:40:58 +0000 (11:40 +1000)]
kdrive: switch to new InputOption API.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Keith Packard <keithp@keithp.com>
5 years agoBug 38420: Xvfb crashes in miInitVisuals() when started with depth=2
Christopher Yeleighton [Tue, 25 Oct 2011 01:47:06 +0000 (18:47 -0700)]
Bug 38420: Xvfb crashes in miInitVisuals() when started with depth=2

https://bugs.freedesktop.org/show_bug.cgi?id=38420

Exit with fatal error message, not segfault.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoMerge remote-tracking branch 'jeremyhu/master'
Keith Packard [Tue, 25 Oct 2011 01:12:23 +0000 (18:12 -0700)]
Merge remote-tracking branch 'jeremyhu/master'

5 years agoxf86Crtc: handle no outputs with no modes harder.
Dave Airlie [Thu, 20 Oct 2011 13:43:01 +0000 (14:43 +0100)]
xf86Crtc: handle no outputs with no modes harder.

If you started an X server with no connected outputs, we pick a default
1024x768 mode, however if you then ran an xvidmode using app against that
server it would segfault the server due to not finding any valid modes.

This was due to the no output mode set code, only adding the modes to the
scrn->modes once, when something called randr 1.2 xf86SetScrnInfoModes would
get called and remove all the modes and we'd end up with 0.

This change fixes xf86SetScrnInfoModes to always report a scrn mode of at
least 1024x768, and pushes the initial configuration to just call it instead
of setting up the mode itself.

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=746926

I've seen other bugs like this on other distros so it might also actually fix them.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoXQuartz: Fix the filename of our log file
Jeremy Huddleston [Mon, 24 Oct 2011 23:45:36 +0000 (16:45 -0700)]
XQuartz: Fix the filename of our log file

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
5 years agoXQuartz: appledri: Allow byte swapped requests
Jeremy Huddleston [Fri, 21 Oct 2011 17:27:16 +0000 (10:27 -0700)]
XQuartz: appledri: Allow byte swapped requests

Even though it's only valid when local, it is possible for a local
client and the server to not match endianness, such as when running
a ppc application under Rosetta.

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
5 years agoXQuartz: appledri: Fix byte swapping in replies
Jeremy Huddleston [Fri, 21 Oct 2011 05:34:44 +0000 (22:34 -0700)]
XQuartz: appledri: Fix byte swapping in replies

Even though it's only valid when local, it is possible for a local
client and the server to not match endianness, such as when running
a ppc application under Rosetta.

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
5 years agoXQuartz: appledri: Set the correct reply length for XAppleDRICreatePixmap
Jeremy Huddleston [Fri, 21 Oct 2011 05:23:07 +0000 (22:23 -0700)]
XQuartz: appledri: Set the correct reply length for XAppleDRICreatePixmap

http://xquartz.macosforge.org/trac/ticket/508

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
5 years agoXQuartz: appledri: Change whitespace in appledristr.h to match mesa
Jeremy Huddleston [Thu, 20 Oct 2011 18:35:54 +0000 (11:35 -0700)]
XQuartz: appledri: Change whitespace in appledristr.h to match mesa

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
5 years agoXnest: Match the host's keymap
Jeremy Huddleston [Sun, 16 Oct 2011 09:12:38 +0000 (02:12 -0700)]
Xnest: Match the host's keymap

This was a regression.

Introduced by: 08363c5830bdea34012dcd954b45ccfdc79a3a7e and
               32db27a7f867b503c2840ca7b815e96d10be9210
Masked by: 1e69fd4a60147287b31e53bfc61543fb17bb82c8

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
5 years agotest: Add unit test for mieq
Jeremy Huddleston [Tue, 18 Oct 2011 06:45:32 +0000 (23:45 -0700)]
test: Add unit test for mieq

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
5 years agomieq: Reserve some space in EQ for release and other special events
Jeremy Huddleston [Tue, 18 Oct 2011 04:16:37 +0000 (21:16 -0700)]
mieq: Reserve some space in EQ for release and other special events

The last 64 events in the event queue will be reserved for release
events in order to help return the system to a cleaner state when
it comes back from a soft wedge.

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
5 years agomieq: Provide better adaptability and diagnostics during mieq overflow
Jeremy Huddleston [Sun, 16 Oct 2011 05:51:30 +0000 (22:51 -0700)]
mieq: Provide better adaptability and diagnostics during mieq overflow

This patch changes from a static length event queue (512) to one that
starts at 128 and grows to 4096 as it overflows, logging each time it
grows.

This change also allows for multiple backtraces to be printed when the
server is wedged rather than just one.  This increased sampling should
help identify the true hog in cases where one backtrace might be
insufficient.

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
5 years agoconfigure.ac: Add -fno-strict-aliasing to CFLAGS
Jeremy Huddleston [Sat, 30 Oct 2010 21:55:06 +0000 (14:55 -0700)]
configure.ac: Add -fno-strict-aliasing to CFLAGS

This should force the server to have -fno-strict-aliasing even once it
is removed from the warning flags.

See: https://bugs.freedesktop.org/show_bug.cgi?id=31238

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
5 years agotest: Silence some debug lines from the input unit tests
Jeremy Huddleston [Wed, 5 Oct 2011 22:02:52 +0000 (15:02 -0700)]
test: Silence some debug lines from the input unit tests

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
5 years agoXnest: Fix DestroyNotify handler
Jeremy Huddleston [Thu, 20 Oct 2011 21:28:56 +0000 (14:28 -0700)]
Xnest: Fix DestroyNotify handler

This partially reverts the unwanted changes that crept into
c13a48e74ec89eafa9b529a87253a631ef02f2e2

Reported-by: Julien Cristau <jcristau@debian.org>
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Reviewed-by: Julien Cristau <jcristau@debian.org>
5 years agoMerge remote-tracking branch 'aplattner/for-master'
Keith Packard [Thu, 20 Oct 2011 02:14:32 +0000 (19:14 -0700)]
Merge remote-tracking branch 'aplattner/for-master'

5 years agoMerge remote-tracking branch 'hramrach/pull'
Keith Packard [Thu, 20 Oct 2011 00:33:07 +0000 (17:33 -0700)]
Merge remote-tracking branch 'hramrach/pull'

5 years agoMerge remote-tracking branch 'whot/for-keith'
Keith Packard [Thu, 20 Oct 2011 00:26:50 +0000 (17:26 -0700)]
Merge remote-tracking branch 'whot/for-keith'

5 years agocomposite: Update borderClip in compAllocPixmap()
Ville Syrjala [Sat, 8 Oct 2011 22:11:04 +0000 (01:11 +0300)]
composite: Update borderClip in compAllocPixmap()

Previously the parent constrained borderClip was copied over
when compRedirectWindow() is called. That is insufficient eg. in
case the window was already redirected, but not yet realized. So
copy the borderClip over in compAllocPixmap() instead.

Example:
Window 1 is below an automatically redirect window 2. Window 2 is
unmapped and moved outside the extents of window 1. Window 2 is
then mapped again, and MarkOverlappedWindows() uses the up to
date borderSize of window 2 to mark windows, which leaves
window 1 unmarked. Then exposures are calculated using the stale
borderClip of window 2, which causes the window below window 2,
to be exposed through an apparent hole in window 1.

Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=22566

Signed-off-by: Ville Syrjala <syrjala@sci.fi>
Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoXWinrc.man: fix warning: tab character in unquoted macro argument #35054
Gaetan Nadon [Mon, 17 Oct 2011 19:08:14 +0000 (15:08 -0400)]
XWinrc.man: fix warning: tab character in unquoted macro argument #35054

Spaces or tabs do not affect the text output layout.

Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoxorg.conf.man: fix 382: warning: missing `)' (got `R') #35054
Gaetan Nadon [Mon, 17 Oct 2011 19:08:13 +0000 (15:08 -0400)]
xorg.conf.man: fix 382: warning: missing `)' (got `R') #35054

http://www.gnu.org/software/groff/manual/html_node/Man-usage.html

Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agocrtc: match full preferred modes if possible when choosing an initial config
Jesse Barnes [Thu, 13 Oct 2011 19:01:10 +0000 (12:01 -0700)]
crtc: match full preferred modes if possible when choosing an initial config

It's fairly common to have multiple, identical monitors plugged in.  In
that case, it's preferable to run the monitor's preferred mode on each
output, rather than just matching the width & height and end up with
different timings or refresh rates.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agorender: export TriStrip and TriFan to the drivers
Chris Wilson [Sun, 4 Sep 2011 16:34:08 +0000 (09:34 -0700)]
render: export TriStrip and TriFan to the drivers

Rather than perform an intermediate copy and expand the strip and the
fan into a triangle list (thereby tripling the number of edges that the
driver needs to process), allow the backend to hook directly into the
appropriate Composite function.

In order to extend the PictureScreen, without needlessly bumping the
ABI, we move the existing copy implementations to mipict.c and assign
those by default. To notify the ddx that the new entry points are
available, we introduce PICTURE_SCREEN_VERSION.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Aaron Plattner <aplattner@nvidia.com>
5 years agorandr: stop clients from deleting immutable output properties
Luc Verhaegen [Tue, 23 Aug 2011 22:19:59 +0000 (15:19 -0700)]
randr: stop clients from deleting immutable output properties

Immutable in randr means that clients are not able to alter the
property itself, they are only allowed to alter the property value.
This logically means that the property then should not be deleted
by the client either.

Signed-off-by: Luc Verhaegen <libv@skynet.be>
Reviewed-by: Rami Ylimäki <rami.ylimaki@vincit.fi>
Reviewed-by: Aaron Plattner <aplattner@nvidia.com>
Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
5 years agoMerge remote-tracking branch 'herrb/master'
Keith Packard [Tue, 18 Oct 2011 14:45:24 +0000 (07:45 -0700)]
Merge remote-tracking branch 'herrb/master'

5 years agoFix CVE-2011-4029: File permission change vulnerability.
Matthieu Herrb [Mon, 17 Oct 2011 20:27:35 +0000 (22:27 +0200)]
Fix CVE-2011-4029: File permission change vulnerability.

Use fchmod() to change permissions of the lock file instead
of chmod(), thus avoid the race that can be exploited to set
a symbolic link to any file or directory in the system.

Signed-off-by: Matthieu Herrb <matthieu.herrb@laas.fr>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
5 years agoFix CVE-2011-4028: File disclosure vulnerability.
Matthieu Herrb [Mon, 17 Oct 2011 20:26:12 +0000 (22:26 +0200)]
Fix CVE-2011-4028: File disclosure vulnerability.

use O_NOFOLLOW to open the existing lock file, so symbolic links
aren't followed, thus avoid revealing if it point to an existing
file.

Signed-off-by: Matthieu Herrb <matthieu.herrb@laas.fr>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
5 years agoDo not uselessly reload modules in DuplicateModule
Michal Suchanek [Sat, 8 Oct 2011 12:26:24 +0000 (14:26 +0200)]
Do not uselessly reload modules in DuplicateModule

The function does not initialize the module so it has no business
loading it. If some user of DuplicateModule expects a module actually
loaded they should use LoadModule.

Signed-off-by: Michal Suchanek <hramrach@centrum.cz>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
5 years agoUse UnloadModuleOrDriver for UnloadSubModule.
Michal Suchanek [Sat, 8 Oct 2011 12:19:34 +0000 (14:19 +0200)]
Use UnloadModuleOrDriver for UnloadSubModule.

Signed-off-by: Michal Suchanek <hramrach@centrum.cz>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
5 years agoUnload submodules.
Michal Suchanek [Sat, 8 Oct 2011 12:13:33 +0000 (14:13 +0200)]
Unload submodules.

Signed-off-by: Michal Suchanek <hramrach@centrum.cz>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
5 years agoDocument -background none option
Michal Suchanek [Thu, 13 Oct 2011 15:14:53 +0000 (17:14 +0200)]
Document -background none option

Document option introduced in commit 8976e97.

Signed-off-by: Michal Suchanek <hramrach@centrum.cz>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
5 years agoFix drain_console unregistration
Tomáš Trnka [Tue, 11 Oct 2011 07:11:18 +0000 (09:11 +0200)]
Fix drain_console unregistration

Bug introduced by 9dca441670d261a9a9fb6108960ed48f3d58fb7f
xfree86: add a hook to replace the new console handler.

console_handler was not being set, making the server eat up CPU spinning
in WaitForSomething selecting consoleFd over and over again, every time
trying to unregister drain_console without success due to
console_handler being NULL.

Let's just fix the unregistration in xf86SetConsoleHandler() and use that.

But wait, there could be a catch: If some driver replaced the handler using
xf86SetConsoleHandler(), the unregistration in xf86CloseConsole will unregister
that one. I don't understand Xorg well enough to know whether this poses a
problem (could mess up driver deinit somehow or something like that). As it is,
xf86SetConsoleHandler() doesn't offer any way to prevent this (i.e. check which
handler is currently registered).

I had been using it for two days on my machine that previously hit 100% CPU
several times a day. That has now gone away without any new problems appearing.

Signed-off-by: Tomas Trnka <tomastrnka@gmx.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
5 years agodix: mark motion events as emulated if we're scrolling from button press
Peter Hutterer [Wed, 5 Oct 2011 02:08:31 +0000 (12:08 +1000)]
dix: mark motion events as emulated if we're scrolling from button press

The protocol requires that the emulated event is marked as such. So if a
driver with smooth scrolling axis sends legacy button events, the motion
event must be marked as emulated.

Pass the real type to emulate_scroll_button_events and create the events
accordingly. For real button press or relase events, only that event must be
generated since a release event will follow or a press event has already
occured, respectively. (This fixes a bug where we'd get two release events
for each legacy button event)

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
5 years agodix: add valuator_mask_fetch_double()
Peter Hutterer [Fri, 30 Sep 2011 00:59:47 +0000 (10:59 +1000)]
dix: add valuator_mask_fetch_double()

Using this call simplifies callers that don't know if the mask bit is set.

Before:
  if (valuator_mask_isset(mask, valnum))
    value = valuator_mask_get_double(mask, valnum));
  else
    value = someothervalue;

Now:
 if (!valuator_mask_fetch_double(mask, valnum, &value))
    value = someothervalue;

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
5 years agoMerge remote-tracking branch 'jeremyhu/master'
Keith Packard [Mon, 17 Oct 2011 21:36:34 +0000 (14:36 -0700)]
Merge remote-tracking branch 'jeremyhu/master'

5 years agoMerge remote-tracking branch 'whot/next'
Keith Packard [Mon, 17 Oct 2011 20:50:25 +0000 (13:50 -0700)]
Merge remote-tracking branch 'whot/next'

5 years agoBump ABI_VIDEODRV_VERSION to 12
Jeremy Huddleston [Sat, 24 Sep 2011 07:01:11 +0000 (00:01 -0700)]
Bump ABI_VIDEODRV_VERSION to 12

The ABI changed in the previous series of changes, so bump the ABI version for
the next release.

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
5 years agoxfree86: Deprecate xf86MapVidMem and friends
Jeremy Huddleston [Sun, 9 Oct 2011 09:59:12 +0000 (02:59 -0700)]
xfree86: Deprecate xf86MapVidMem and friends

Drivers should transition over to using libpciaccess's instead.

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
5 years agoxorg-server.pc.in: Remove libpciaccess and pixman-1 from Requires
Jeremy Huddleston [Wed, 14 Sep 2011 18:45:18 +0000 (13:45 -0500)]
xorg-server.pc.in: Remove libpciaccess and pixman-1 from Requires

Every module building against xorg-server does not *Require* pixman nor
libpciaccess.  If such modules need pixman or pciaccess, they should be
depending on them directly rather than inheriting a dependency from
xorg-server.  To do this, they should use PKG_CHECK_MODULES in configure.ac
to check for pixman-1 or pciaccess and include the apporpriate _LIBS variable
to the appropriate _LDFLAGS variable in Makefile.am

This also moves pixman-1 to Requires.private, so CPPFLAGS is set right to
to satisfy include dependencies but avoid linking needlessly.

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
5 years agodarwin: configure: Force some irrelevant options to off on darwin
Jeremy Huddleston [Wed, 14 Sep 2011 15:37:38 +0000 (10:37 -0500)]
darwin: configure: Force some irrelevant options to off on darwin

This removes the need to pass the following to configure on darwin:
--disable-pciaccess -disable-int10-module --disable-vbe --disable-vgahw --disable-libdrm

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
5 years agoxfree86: Link modules with -module
Jeremy Huddleston [Wed, 14 Sep 2011 20:42:19 +0000 (15:42 -0500)]
xfree86: Link modules with -module

This makes a difference on darwin (and apparently nowhere else)

https://www.gnu.org/s/libtool/manual/libtool.html#Modules-for-libltdl

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
5 years agoxfree86: fbdevhw: Remove unused include of pciaccess.h
Jeremy Huddleston [Wed, 14 Sep 2011 17:14:56 +0000 (12:14 -0500)]
xfree86: fbdevhw: Remove unused include of pciaccess.h

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
5 years agoconfigure: wrap PCI code with macro and set it at build time
Tiago Vignatti [Tue, 1 Jun 2010 10:05:47 +0000 (13:05 +0300)]
configure: wrap PCI code with macro and set it at build time

--disable-pciaccess, used together with --disable-module-int10, can be used to
disable all pci code inside the server.

Note that XSERVER_LIBPCIACCESS was previously used only in the driver side and
now it defines also whether the library is used inside the server. Also,
XORG_BUS_PCI automake variable is introduced to track PCI code needs.

Signed-off-by: Tiago Vignatti <tiago.vignatti@nokia.com>
Reviewed-by: Mikhail Gusarov <dottedmag@dottedmag.net>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Tested-by: Jeremy Huddleston <jeremyhu@apple.com>
5 years agoconfigure: make PCI configuration more sane
Tiago Vignatti [Mon, 31 May 2010 16:27:07 +0000 (19:27 +0300)]
configure: make PCI configuration more sane

No semantical changes. Just moved code around, grouping PCI related stuff in a
single chunk.

Signed-off-by: Tiago Vignatti <tiago.vignatti@nokia.com>
Reviewed-by: Mikhail Gusarov <dottedmag@dottedmag.net>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Tested-by: Jeremy Huddleston <jeremyhu@apple.com>
5 years agoconfigure: change PCI function checking by a meaningful version of the library
Tiago Vignatti [Mon, 31 May 2010 15:50:50 +0000 (18:50 +0300)]
configure: change PCI function checking by a meaningful version of the library

People that don't want VGA arbiter active can go to the library and enable the
stubs there.

Signed-off-by: Tiago Vignatti <tiago.vignatti@nokia.com>
Reviewed-by: Mikhail Gusarov <dottedmag@dottedmag.net>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Tested-by: Jeremy Huddleston <jeremyhu@apple.com>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
5 years agoxfree86: Work around issue where ar may be told to make an archive with no contents
Jeremy Huddleston [Tue, 13 Sep 2011 20:32:16 +0000 (15:32 -0500)]
xfree86: Work around issue where ar may be told to make an archive with no contents

Automake:

 "Be careful when selecting library components conditionally. Because building
 an empty library is not portable, you should ensure that any library
 always contains at least one object."

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
5 years agoxfree86: Add stubs for os-support to help adding new architecture support
Jeremy Huddleston [Tue, 13 Sep 2011 20:38:45 +0000 (15:38 -0500)]
xfree86: Add stubs for os-support to help adding new architecture support

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
5 years agoint10: Port internal users off xf86MapVidMem
Adam Jackson [Tue, 10 May 2011 23:00:02 +0000 (19:00 -0400)]
int10: Port internal users off xf86MapVidMem

This API is apparently semi-deprecated even by XFree86 standards, and
there are only four drivers left using it.  Let's start chopping it off.

Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Tested-by: Jeremy Huddleston <jeremyhu@apple.com>
Signed-off-by: Adam Jackson <ajax@redhat.com>
5 years agopci: Remove xf86MapDomainMemory
Adam Jackson [Tue, 10 May 2011 21:34:23 +0000 (17:34 -0400)]
pci: Remove xf86MapDomainMemory

This is slightly draconian, but that API is just awful.  In all but
one case in the callers it's used to get a map of some legacy VGA
memory, and it would be cleaner for the caller to just call
pci_device_map_legacy.

The sole exception is in the vesa driver, which uses it to avoid having
to look up which device the BAR belongs to.  That's similarly trivial to
fix.

Having done that, Linux's PCI layer is now very small indeed.

Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Tested-by: Jeremy Huddleston <jeremyhu@apple.com>
Signed-off-by: Adam Jackson <ajax@redhat.com>
5 years agoint10: Use pciaccess rom fetch for !PC machines
Adam Jackson [Tue, 10 May 2011 22:04:10 +0000 (18:04 -0400)]
int10: Use pciaccess rom fetch for !PC machines

... instead of rolling our own, badly.

Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Tested-by: Jeremy Huddleston <jeremyhu@apple.com>
Signed-off-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
5 years agopci: Deprecate the PCITAG type
Adam Jackson [Tue, 10 May 2011 20:41:08 +0000 (16:41 -0400)]
pci: Deprecate the PCITAG type

It is kept around to help drivers through the API transition and will be
removed at some point in the future.

Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Tested-by: Jeremy Huddleston <jeremyhu@apple.com>
Signed-off-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
5 years agoxfree86: Remove unused bios_devmem.c
Adam Jackson [Fri, 7 Jan 2011 22:20:15 +0000 (17:20 -0500)]
xfree86: Remove unused bios_devmem.c

Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Tested-by: Jeremy Huddleston <jeremyhu@apple.com>
Signed-off-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
5 years agolinux: Remove ia64 domain I/O support code
Adam Jackson [Fri, 7 Jan 2011 21:57:15 +0000 (16:57 -0500)]
linux: Remove ia64 domain I/O support code

pciaccess handles this now.

Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Tested-by: Jeremy Huddleston <jeremyhu@apple.com>
Signed-off-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
5 years agolinux: Remove pre-2.6 PCI interface support
Adam Jackson [Fri, 16 Oct 2009 20:09:56 +0000 (16:09 -0400)]
linux: Remove pre-2.6 PCI interface support

If you haven't ported 2.6 to your architecture in the intervening seven
years, you can keep running older servers.

Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Tested-by: Jeremy Huddleston <jeremyhu@apple.com>
Signed-off-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
5 years agobus: remove some dead struct fields
Adam Jackson [Fri, 16 Oct 2009 18:05:54 +0000 (14:05 -0400)]
bus: remove some dead struct fields

Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Tested-by: Jeremy Huddleston <jeremyhu@apple.com>
Signed-off-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
5 years agolinux: Use pci_device_get_parent_bridge instead of open-coding it
Adam Jackson [Mon, 20 Sep 2010 15:42:11 +0000 (11:42 -0400)]
linux: Use pci_device_get_parent_bridge instead of open-coding it

Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Tested-by: Jeremy Huddleston <jeremyhu@apple.com>
Signed-off-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
5 years agopci: Port xf86MapLegacyIO to pciaccess
Adam Jackson [Fri, 16 Sep 2011 17:33:04 +0000 (13:33 -0400)]
pci: Port xf86MapLegacyIO to pciaccess

Per-domain I/O is now something drivers must manually request, and must
keep track of within their own state rather than in the ScrnInfoRec.
It's not really possible to split that into two steps without an
additional intermediate ABI break, so don't even try.  Drivers that want
source compatibility should ifdef on the presence of xf86UnmapLegacyIO.

As a fringe benefit, domain-aware I/O is now OS-independent, relying
only on support in pciaccess.  Simplify OS PCI setup to reflect this.

The IOADDRESS type is kept around to help drivers through the API
transition and will be removed at some point in the future.

Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Tested-by: Jeremy Huddleston <jeremyhu@apple.com>
Signed-off-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
5 years agovgahw: Port to pciaccess IO space routines
Adam Jackson [Tue, 20 Sep 2011 22:12:29 +0000 (18:12 -0400)]
vgahw: Port to pciaccess IO space routines

Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Tested-by: Jeremy Huddleston <jeremyhu@apple.com>
Signed-off-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
5 years agovgahw: Don't default to standard (port space) access routines
Adam Jackson [Thu, 22 Sep 2011 17:45:57 +0000 (13:45 -0400)]
vgahw: Don't default to standard (port space) access routines

In fact, don't default to anything; drivers must explicitly say which
kind they want, and they are strongly encouraged to do MMIO if possible.
This is an ABI change in that drivers that don't will crash, but drivers
that are explicit will work with both old and new servers.

Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Tested-by: Jeremy Huddleston <jeremyhu@apple.com>
Signed-off-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
5 years agovgahw: Remove IO domain setup
Adam Jackson [Thu, 22 Sep 2011 17:44:53 +0000 (13:44 -0400)]
vgahw: Remove IO domain setup

Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Tested-by: Jeremy Huddleston <jeremyhu@apple.com>
Signed-off-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
5 years agoint10: Port to pciaccess' legacy IO API
Adam Jackson [Sat, 18 Sep 2010 12:24:19 +0000 (08:24 -0400)]
int10: Port to pciaccess' legacy IO API

Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Tested-by: Jeremy Huddleston <jeremyhu@apple.com>
Signed-off-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
5 years agoxfree86: Move xf86GetClocks to vgahw
Adam Jackson [Sat, 18 Sep 2010 12:05:11 +0000 (08:05 -0400)]
xfree86: Move xf86GetClocks to vgahw

This is really a vga-specific hack anyway.  The only modern driver that
uses it is trident, but it's already loaded vgahw by the time it would
call xf86GetClocks.

Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Tested-by: Jeremy Huddleston <jeremyhu@apple.com>
Signed-off-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
5 years agotest: fix input test
Dave Airlie [Wed, 12 Oct 2011 08:59:38 +0000 (09:59 +0100)]
test: fix input test

The test was memsetting the wrong thing, this fixes make check in my tinderbox.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
5 years agodix: add utility functions for double to/fro FP1616/FP3232 conversion
Jeremy Huddleston [Wed, 5 Oct 2011 22:02:52 +0000 (15:02 -0700)]
dix: add utility functions for double to/fro FP1616/FP3232 conversion

Co-authored-by: Jeremy Huddleston <jeremyhu@apple.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Reviewed-by: Mark Kettenis <kettenis@openbsd.org>
5 years agoos: Remove Error()
Jeremy Huddleston [Wed, 12 Oct 2011 00:37:44 +0000 (17:37 -0700)]
os: Remove Error()

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
5 years agoXephyr: Remove socket and its lock file on exit
Jeremy Huddleston [Mon, 10 Oct 2011 19:16:31 +0000 (12:16 -0700)]
Xephyr: Remove socket and its lock file on exit

https://bugs.freedesktop.org/show_bug.cgi?id=11484

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Reviewed-by: Mikhail Gusarov <dottedmag@dottedmag.net>
5 years agoXnest: Remove socket and its lock file on exit
Jeremy Huddleston [Mon, 10 Oct 2011 19:09:39 +0000 (12:09 -0700)]
Xnest: Remove socket and its lock file on exit

https://bugs.freedesktop.org/show_bug.cgi?id=11484

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Reviewed-by: Mikhail Gusarov <dottedmag@dottedmag.net>
5 years agodix: move MD last.valuator update into fill_pointer_events
Peter Hutterer [Mon, 3 Oct 2011 03:58:01 +0000 (13:58 +1000)]
dix: move MD last.valuator update into fill_pointer_events

Don't update the MD where it's not expected, positionSprite should really
just do that - position the sprite.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
5 years agomi: switch miPointerSetPosition to take doubles
Peter Hutterer [Mon, 3 Oct 2011 03:10:53 +0000 (13:10 +1000)]
mi: switch miPointerSetPosition to take doubles

Don't switch between doubles and ints in the caller, instead take doubles in
miPointerSetPosition and do the conversion there. For full feature we should
change everything down from here for doubles too.

Functional change: previously we'd restore the remainder regardless of
screen switching/confinement (despite what the comment said). Now,
screen changing or cursor constraints will cause the remainder be clipped
off. This should happen for cursor constraints but arguably not for screen
crossing.

This also corrects a currently wrong comment about miPointerSetPosition's
input coordinates.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
5 years agomi: return the screen from miPointerSetPosition
Peter Hutterer [Mon, 3 Oct 2011 02:49:49 +0000 (12:49 +1000)]
mi: return the screen from miPointerSetPosition

miPointerSetPosition may switch screens. Always return the screen the sprite
is on instead of relying on callers to call miPointerGetScreen().

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
5 years agodix: drop screen argument from positionSprite
Peter Hutterer [Mon, 3 Oct 2011 02:37:28 +0000 (12:37 +1000)]
dix: drop screen argument from positionSprite

We can just get this in the function, no effective functional changes.

Also return the screen to the caller. Though we don't use it yet, we will in
a follow-up patch.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
5 years agodix: move screen- to device coordinate scaling to separate function
Peter Hutterer [Mon, 3 Oct 2011 01:42:08 +0000 (11:42 +1000)]
dix: move screen- to device coordinate scaling to separate function

No functional changes.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
5 years agodix: don't allow keyboard devices to submit motion or button events.
Peter Hutterer [Mon, 29 Aug 2011 02:36:26 +0000 (12:36 +1000)]
dix: don't allow keyboard devices to submit motion or button events.

GPE unconditionally dereferences pDev->valuator if a mask is present. This
shouldn't really happen but if it does, don't crash, just ignore the events
with an error.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
5 years agodix: moveRelative modifies parameter in-place, say so.
Peter Hutterer [Mon, 3 Oct 2011 02:19:21 +0000 (12:19 +1000)]
dix: moveRelative modifies parameter in-place, say so.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
5 years agodix: rename moveAbsolute to clipAbsolute
Peter Hutterer [Mon, 3 Oct 2011 02:18:20 +0000 (12:18 +1000)]
dix: rename moveAbsolute to clipAbsolute

Let's be honest about what it does.

moveRelative accumulates delta _and_ clips in some cases, so that one can
keep it's name.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
5 years agodix: fix missing verb in comment
Peter Hutterer [Fri, 30 Sep 2011 00:50:51 +0000 (10:50 +1000)]
dix: fix missing verb in comment

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
5 years agodix: document transformAbsolute
Peter Hutterer [Fri, 30 Sep 2011 00:47:00 +0000 (10:47 +1000)]
dix: document transformAbsolute

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
5 years agodix: copy the source ID into the RawEvent (#34240)
Peter Hutterer [Fri, 29 Jul 2011 00:56:44 +0000 (10:56 +1000)]
dix: copy the source ID into the RawEvent (#34240)

X.Org Bug 34240 <http://bugs.freedesktop.org/show_bug.cgi?id=34240>

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
5 years agoloader: when creating sdksyms.c only include shmint.h if MITSHM is enabled #29109
Jeremy Huddleston [Sun, 9 Oct 2011 11:00:41 +0000 (04:00 -0700)]
loader: when creating sdksyms.c only include shmint.h if MITSHM is enabled #29109

https://bugs.freedesktop.org/show_bug.cgi?id=29109

When configured with --disable-mitshm the symbols declared in shmint.h
do not exist. By guarding the include with '#ifdef MITSHM' these
symbols are skipped when generating sdksyms.c with --disable-mitshm.

Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
5 years agoxfree86: fix build with xv disabled
Julien Cristau [Mon, 10 Oct 2011 00:06:14 +0000 (17:06 -0700)]
xfree86: fix build with xv disabled

https://bugs.freedesktop.org/show_bug.cgi?id=29111

Signed-off-by: Julien Cristau <jcristau@debian.org>
Tested-by: Cyril Brulebois <kibi@debian.org>
Reviewed-by: Cyril Brulebois <kibi@debian.org>
5 years agoMan page syntax and spelling fixes.
Ville Skyttä [Sun, 6 Mar 2011 08:18:30 +0000 (10:18 +0200)]
Man page syntax and spelling fixes.

Signed-off-by: Ville Skyttä <ville.skytta@iki.fi>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>