Skip to content

x11: Detach selection streams on dispose

Carlos Garnacho requested to merge wip/carlosg/x11-selection-detach into master

The streams were only detached from MetaX11Display (and its event handling) on completion. This is too much to expect, and those might be in some circumstances replaced while operating.

Make those streams detach themselves on dispose(), so we don't trip into freed memory later on when trying to dispatch unrelated X11 selection events.

Merge request reports