I was on elementaryOS Loki and I clicked the Update button on AppCenter which brought my elementaryOS to 5.1 Hera. After various days I noticed that any applications that are not cured for elementaryOS, for example Firefox, Visual Studio Code, Unity (game engine), etc, don't work properly when you open a gui to save a file. The top navigation for saving files doesn't work on non cured applications. In the case of Unity, the clicks anywhere on the user interface don't match the position of the cursor. The same sometimes happens in Firefox.
I wanted to know if there is a way to reinstall the display manager, the desktop environment, and the window manager.
I have access to safe mode so I don't mind booting into it to completely uninstall those, reboot, and then do a clean install of them again if necessary.