>> please try the attached patch and tell me whether it helps. > > When I apply the patch to an unmodified xterm.c, emacs -Q has a menubar > but no toolbar, and the complete UI except for the menubar is just black > screen with no text, no modeline, no nothing! Even resizing or typing > won't make anything appear. The menubar works, though. I can expand it > and press entries, and it seems it reacts to that. > > When I apply your patch and also remove the second ifdef, that doesn't > change. Just a menubar with blackness on the rest of the frame. Thanks. That was a misguided attempt that didn't work here either. Please try the patch I attach now, it at least doesn't break anything here. If this still doesn't get us anywhere, I'd like to look into your frame size history and will tell you how to set that up. martin