On window changing the old code would deactivate the minimise all
plugin, but not restore the rest of the minised windows. This restores
that behaviour.
Also simplify tracking which active window changes, in a way that still
works when a user clicks minimise all then interacts with the desktop.
BUG: 395519
Finishes D13529