bug#81193: 31.0.90; Wrong offsets in 'set-frame-size-and-position'

martin rudalics via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <[email protected]> Thu, 6 Aug 2026 09:35:16 +0200
Newsgroups gmane.emacs.bugs
Message-ID <[email protected]>
 >> Frame positioning per se is broken with the mutter window manager.
 >
 > More broken than it was in Emacs 30?

It doesn't depend on the version of Emacs.  It seems to get more and
more broken with every new release of mutter.  But I can't tell for sure
because I have only an old version of mutter here and so far Dmitry was
the only one to run a newer one.  Broken are AFAICT all functions to
retrieve and set the positions of top-level frames.  In addition we have
some strange resizing behavior where Emacs either comes up with or
shrinks back to tiny frames.

Since 'set-frame-size-and-position' was mainly conceived for child
frames and it works there even on mutter, this is nothing to seriously
worry about.  It certainly should not have any impact on the release
process.  Besides, with PGTK Wayland there won't be any positioning of
top-level frames from within Emacs by design.

martin