bug#81193: 31.0.90; Wrong offsets in 'set-frame-size-and-position'
Johan Myréen <[email protected]> Fri, 7 Aug 2026 18:07:42 +0300
| Newsgroups | gmane.emacs.bugs |
|---|---|
| Message-ID | <CA+TD5hiULFSMyuJWU5MmqLwPpAn3iF7J1dFasszjjbVOL4Tjaw@mail.gmail.com> |
> > Frame positioning per se is broken with the mutter window manager. > AFACICT this does not affect 'set-frame-size-and-position' alone but > also 'set-frame-position' and setting the 'left' and 'top' frame > parameters. Since frame positioning with PGTK Wayland is inhibited > anyway, it will hardly be fixable on X either. There is a distinction between child frames and "normal" frames. Child frames can be positioned on PGTK Wayland. Given the problems with different window managers and windowing systems in general, I think the long term solution should be to not make child frames top level surfaces at all. By top level surfaces I mean windowing system windows/surfaces that involve the window manager. Toolkits like GTK do not implement their widgets (buttons, etc) as top level surfaces, and I think this could be a good choice for Emacs child frames too. This way the child frames would be confined within the well defined application window area, and not at the whim of various window managers.