> Currently frameset sorting is not stable. It changes the sorting order of equal > minibuffer-owning frames. On closer inspection it becomes clear that > frameset--mini parameters are messed up in 'frameset--minibufferless-last-p'. > This patch should fix it: Pushed to master. Now one problem still remains: the desktop file doesn't restore the selected frame, i.e. after restoring frames from the desktop file, the selected frame is not the same as was before saving the desktop. This patch ensures that the previously selected frame is restored last, thus becoming selected again: