Skip to content

shell/window-preview-layout: Ensure we don't touch dead objects

Zander Brown requested to merge zbrown/preview-layout into main

We were assuming the lifetime of the MetaWindow worked out in our favour, and further hoping the GC didn't work against us

Avoid this by taking an explict weak ref, and checking the object is live before removing handlers

Fix: #6570 (closed)

(I must confess, I've not actually tested this)

Merge request reports