plugins/glide: drop references to closed windows if they're not animated
Otherwise the window might still be referenced from the opening animation, which can lead to the effect wrongly keeping a reference to the window and staying active.
(cherry picked from commit 64d70029)
Co-authored-by: Xaver Hugl xaver.hugl@gmail.com