c281e868a0
Since the WindowPreview class rarely needs to handle the actual actor painting the window preview, refactor the WindowPreviewLayout a bit to only pass a MetaWindow to its addWindow() and removeWindow() functions. Also make the getWindows() function return an array of MetaWindows, which makes the getMetaWindow() function obsolete, so remove that. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1307