Hi Pekka,

On 12 April 2018 at 14:53, Pekka Paalanen <ppaala...@gmail.com> wrote:
> On Thu, 12 Apr 2018 15:37:43 +0300 Pekka Paalanen <ppaala...@gmail.com> wrote:
>> On Thu, 12 Apr 2018 14:03:32 +0200 Daniel Stone <dan...@fooishbar.org> wrote:
>> > One thing I'm missing (possibly post-lunch tiredness, but): when
>> > exactly would we replace a connector? Is it only if we have a
>> > hot-unplugged connector which later appears as a connector of the same
>> > name? e.g. DP-4 as MST disappears, and then reappears with the same
>> > name but a different connector ID.
>>
>> Every time there is any hotplug event, all connectors' information is
>> reloaded. The information could have changed without us seeing the
>> connector disconnected in between. This runs by connector IDs, not
>> names.
>
>> drm_head is always created for all connectors we find, regardless of
>> connected or not.
>
> Oops, I suppose this happens at a later step in the series. I think my
> explanation should still apply even at this step though, for the missed
> unplug event part.

Cool, that's what I was hoping the answer was. It does make sense
later on in the series; it was just at this point that I was worried I
was missing something. I don't think there's much point in reshuffling
it, but maybe a very small comment in the commit message would be
useful.

Cheers,
Daniel
_______________________________________________
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to