Subject: bug#24091: 24.5; High CPU usage at startup while hidden

From: Eli Zaretskii <[email-masked]>
Date: Sat, 03 Sep 2016 21:51:16 +0300

> From: Noam Postavsky <[email-masked]>
> Date: Sat, 3 Sep 2016 14:40:23 -0400
> Cc: [email-masked], Aiken <[email-masked]>, 
> 	Clément Pit--Claudel <[email-masked]>
> 
> >> >         if ((FRAME_ICONIFIED_P (f) || FRAME_VISIBLE_P (f)) &&  ++tries > 100)
> >> >           break;
> >>
> >> No, which sort of makes sense since the frame isn't actually visible.
> >
> > But you said the MapNotify event was received?  Doesn't that cause the
> > frame to become marked as visible?
> 
> Only if x_top_window_to_frame returns non-nil, which it does not.

Why doesn't it, in this case, and how are things different with a
"normal" startup, which doesn't infloop?

Btw, I'm only asking these questions on the assumption that we have no
working idea for how to solve this.  If that assumption is false, feel
free to ignore me.

Thanks.