Skip to content

prevents reuse of outdated wlr_output state

Simon Ser requested to merge github/fork/Ongy/drm_reuse into master

Created by: Ongy

On the drm output the wlr_drm_connector structs are reused. This struct contains the wlr_output struct, which is reused as well. The old code kept modes/edid and output state persistent over hotplug. This nulls the relevant strings, reads newer edid data and removes old modes on unplug.

I don't think most of this is observable for the most part in rootston. I added a log of the physical size, which shouldn't change on the old code as well.

I'm not sure if I can just free the modes as I do, @ascent12 some feedback would be nice.

Fixes https://github.com/swaywm/wlroots/issues/608

Merge request reports