Subject: Re: bug#27357: 26.0.50; Emacs starts fullscreen in Ubuntu 17.04

From: Lars Ingebrigtsen <[email-masked]>
Date: Wed, 05 Jul 2017 22:12:01 +0200

Oh, all this is inside Emacs.  I thought it was part of the gtk stuff
somehow.

Anyway, this is from handle_one_xevent, and this is the first of these
calls that expands the size (erroneously):

      if (!f
          && (f = any)
          && configureEvent.xconfigure.window == FRAME_X_WINDOW (f))
        {
          block_input ();
          if (FRAME_X_DOUBLE_BUFFERED_P (f))
            font_drop_xrender_surfaces (f);
          unblock_input ();
          xg_frame_resized (f, configureEvent.xconfigure.width,
                            configureEvent.xconfigure.height);

So something sets configureEvent.xconfigure.width...  And this happens
when the initial basic fonts are realised.

The call sequence here isn't completely obvious.  :-)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no