I think we do consider this particular case as a bug, tho I don't know
if there's someone around here who has a clear idea about why we get
this behavior and how to go about fixing it.
Eli got z-ordered frame handling and live line numbering working well
in Emacs 26 but this might be beyond him? Oh, say it ain't so :-)
Is there an existing bug discussion where this was covered?