[PATCH xrandr 0/2] Provider handling fixes
Aaron Plattner
aplattner at nvidia.com
Mon Feb 4 22:08:03 PST 2013
Right now, xrandr's --setprovideroutputsource and --setprovideroffloadsink
options take provider XIDs in decimal. This is a problem because other things
in the X server can use XID values during startup before the provider XIDs are
assigned. For example, starting X with an external projector attached causes
the provider's XID to change because the modes in the RandR mode pool use up a
different number of XIDs.
This set of changes moves providers to using hexidecimal XIDs to match the
behavior of RandR outputs. It also allows using provider names and treats
decimal numbers as index values into the array of providers as listed by
--listproviders.
Finally, it makes it an error to try to use provider-related options on X
servers that don't report themselves as reporting RandR 1.4. Unfortunately,
that currently includes all released X servers. I'll send out a patch
separately (authored by Dave) that bumps the reported extension version to 1.4.
Aaron Plattner (2):
xrandr: make providers a first-class citizen
xrandr: look for providers by name or xid
xrandr.c | 157 +++++++++++++++++++++++++++++++++++++++++++++++++++------------
1 file changed, 128 insertions(+), 29 deletions(-)
--
1.7.12
More information about the xorg-devel
mailing list