Only fetch request property in .get_property()
This patch changes the behavior of the .get_property() callback to only fetch
the request property value from kernel. The old behavior was to update the
entire connector when any property was requested. This has the side-effect of
also fetching the EDID, which can be time-consuming.
The downside to this method is that a property which has been newly attached to
the connector since the last getConnector will no longer be returned. This is
reasonable behavior since properties are added at initialization time. We could
work around this by fetching the connector state if the property is not found,
but I don't think it's worthwhile.
TEST=Tested on peach, xrandr properly updates property values
Signed-off-by: Sean Paul <firstname.lastname@example.org>
Reviewed-by: Stéphane Marchesin <email@example.com>
1 file changed