xserver-multidpi/randr
Dave Airlie df1b401f57 randr: attempt to fix primary on slave output (v2)
If the user wants to set one of the slave devices as
the primary output, we shouldn't fail to do so,
we were returning BadMatch which was tripping up
gnome-settings-daemon and bad things ensues.

Fix all the places we use primaryOutput to work
out primaryCrtc and take it into a/c when slave
gpus are in use.

v2: review from Aaron, fix indent, unhide has_primary from
macro. I left the int vs Bool alone to be consistent with
code below, a future patch could fix both.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Aaron Plattner <aplattner@nvidia.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
2015-01-26 16:23:10 -08:00
..
Makefile.am randr: add provider object and provider property support (v6) 2012-07-06 22:16:02 +01:00
randr.c randr: Fix crash for NULL swap dispatch procs 2014-04-21 11:44:02 -07:00
randrstr.h Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
rrcrtc.c rrcrtc: brackets are hard, lets go shopping. 2014-05-12 14:55:04 -07:00
rrdispatch.c Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
rrinfo.c randr: don't directly set changed bits in randr screen 2013-04-30 10:08:43 +10:00
rrmode.c Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
rroutput.c randr: attempt to fix primary on slave output (v2) 2015-01-26 16:23:10 -08:00
rrpointer.c randr: Fix logic in RRPointerToNearestCrtc 2014-07-30 14:40:17 -07:00
rrproperty.c Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
rrprovider.c Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
rrproviderproperty.c Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
rrscreen.c randr: attempt to fix primary on slave output (v2) 2015-01-26 16:23:10 -08:00
rrsdispatch.c randr: unvalidated lengths in RandR extension swapped procs [CVE-2014-8101] 2014-12-08 18:09:48 -08:00
rrtransform.c Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
rrtransform.h Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
rrxinerama.c randr: attempt to fix primary on slave output (v2) 2015-01-26 16:23:10 -08:00