49d1af2023
Take a reference to the window to make sure the MetaFocusData->window pointer is not pointing to a freed object. Also make sure that the window that we want to focus is not currently unmanaging. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3258>