Subject: bug#36894: Stability issues in frameset sorting

From: Eli Zaretskii <[email-masked]>
Date: Tue, 06 Aug 2019 18:14:00 +0300

> From: Juri Linkov <[email-masked]>
> Date: Tue, 06 Aug 2019 00:17:32 +0300
> 
> 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:

Is this really necessary?  IME, the selected frame does get restored,
so I'm not sure why it doesn't work for you.

I'm wary of changing the order of restoring frames from what Emacs
does now, because this could have adverse effects on some settings
that are related to restoring frame dimensions.