
Everytime the top window changes we connect/disconnect to the actor's destroy signal, although as explained in commit ba8f5a11 this might be slower in case the window actor has many other signal connections. So, just track this using an ID. https://gitlab.gnome.org/GNOME/mutter/merge_requests/660