windowManager: Add "opacity: 0" to minimize ease animation
Extensions like dash-to-dock use set_icon_geometry() to window.
This changes the dest and scale of ease animation of minimize and
makes it looks very strange. By setting dest opacity to 0 the animation
could be more natural.
This problem has been reported to dash-to-dock extension by someone else in Nov 2022: https://github.com/micheleg/dash-to-dock/issues/1881. However, it's marked as a gnome-shell bug but I don't find any issue or MR in GNOME/gnome-shell related to this.
For myself when using GNOME 43/44, I just wrote an extension to set MINIMIZE_WINDOW_ANIMATION_TIME
in js/ui/windowManager.js
to 0 so minimize animation could be disabled. But this won't work in GNOME 45 with ESM, so I guess the best approach is to make the minimize animation better within gnome-shell.
I have tested this in a Fedora 39 VM with wayland session.
Before:
After: