[Bug 91929] Missing RandR events on hotplug
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Sun Sep 27 11:03:42 PDT 2015
https://bugs.freedesktop.org/show_bug.cgi?id=91929
--- Comment #9 from Chris Wilson <chris at chris-wilson.co.uk> ---
Hmm, nasty. So,
diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c
index 1b1a125..0a59d1d 100644
--- a/src/sna/sna_display.c
+++ b/src/sna/sna_display.c
@@ -4900,6 +4900,7 @@ void sna_mode_discover(struct sna *sna)
DBG(("%s: output %s (id=%d), changed state,
reprobing\n",
__FUNCTION__, output->name,
sna_output->id));
sna_output->last_detect = 0;
+ changed |= 4;
}
continue;
}
@@ -4918,7 +4919,8 @@ void sna_mode_discover(struct sna *sna)
changed |= 2;
}
- if (changed) {
+ /* Have the list of available outputs been updated? */
+ if (changed & 3) {
DBG(("%s: outputs changed, broadcasting\n", __FUNCTION__));
sna_mode_set_primary(sna);
@@ -4933,7 +4935,9 @@ void sna_mode_discover(struct sna *sna)
xf86RandR12TellChanged(screen);
}
- RRGetInfo(screen, TRUE);
+ /* If anything has changed, refresh the RandR information */
+ if (changed)
+ RRGetInfo(screen, TRUE);
RRTellChanged(screen);
}
--
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/intel-gfx-bugs/attachments/20150927/8dc7cde8/attachment-0001.html>
More information about the intel-gfx-bugs
mailing list