Only use the current information when setting modes
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 13 Sep 2015 10:40:37 +0000 (11:40 +0100)
committerAdam Jackson <ajax@redhat.com>
Tue, 20 Oct 2015 16:05:00 +0000 (12:05 -0400)
commitd62030b506f6b686ffe1e750ea9d3a855beec1f0
treed62e6b0980420fdb252d3bc04f6a42aba26fa467
parent3d03be780fca4949b11ead46c5ea5d3266c03c32
Only use the current information when setting modes

Before we change the state (e.g. adding a mode or applying one to an
output), we query the screen resources for the right identifiers. This
should only use the current information rather than force a reprobe on
all hardware - not only can that reprobe be very slow (e.g. EDID
timeouts on the order of seconds), but it may perturb the setup that the
user is trying to configure.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
xrandr.c