Commit 15595d29 authored by Nikhil Mahale's avatar Nikhil Mahale Committed by Hans de Goede
Browse files

randr: Adjust master's last set time with slaves

In prime configurations master's last set time may not be latest
and greatest, adjust it with slaves last set time, pick up greatest
one. Otherwise xserver may end with events which has
lastSetTime < lastConfigTime even if that's not
the case and confuse xrandr client.

[hdegoede: rebase on "xrandrprovider: Do not use separate lists for unbound /
 source / offload slaves"]
Reviewed-by: default avatarHans de Goede <>
Signed-off-by: default avatarHans de Goede <>
parent 5c7af02b
......@@ -580,6 +580,18 @@ RRTellChanged(ScreenPtr pScreen)
mastersp = pScrPriv;
xorg_list_for_each_entry(iter, &master->slave_list, slave_head) {
pSlaveScrPriv = rrGetScrPriv(iter);
if (!iter->is_output_slave)
if (CompareTimeStamps(mastersp->lastSetTime,
pSlaveScrPriv->lastSetTime) == EARLIER) {
mastersp->lastSetTime = pSlaveScrPriv->lastSetTime;
if (mastersp->changed) {
if (mastersp->configChanged) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment