xserver-multidpi/randr
Dave Airlie cdcf9e9510 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>
(cherry picked from commit df1b401f57)
2015-02-01 09:22:47 +10: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 Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08: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-02-01 09:22:47 +10:00
rrpointer.c randr: Fix a copypasta bug in CRTC confinement 2013-09-10 13:26:25 -04:00
rrproperty.c Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
rrprovider.c randr: Fix size checks for SetProvider* reqs 2014-04-21 11:44:31 -07: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-02-01 09:22:47 +10:00
rrsdispatch.c randr: unvalidated lengths in RandR extension swapped procs [CVE-2014-8101] 2014-12-09 17:50:12 +01:00
rrtransform.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
rrtransform.h randr: Remove redundant declaration. 2012-05-14 13:16:54 +01:00
rrxinerama.c randr: attempt to fix primary on slave output (v2) 2015-02-01 09:22:47 +10:00