Window positions under wayland

Igor Korot ikorot01 at gmail.com
Thu Aug 4 17:27:01 UTC 2022


On Thu, Aug 4, 2022 at 12:06 PM Simon Ser <contact at emersion.fr> wrote:
>
> On Thursday, August 4th, 2022 at 19:00, samuel ammonius <sfammonius at gmail.com> wrote:
>
> > apps such as popups and dialogs are usually supposed to start either
> > at the center of the screen or the center of their parent app

You are barking at the wrong tree.

Apparently this is the main feature of the Wayland - do not let the developers
set up the position of the TLW.

>
> That's usually what compositors do: center apps by default. But it's to
> the compositor and user preference.
>
> > apps often want to remember where they were when they closed so they
> > can open there again
>
> This is what [1] addresses.
>
> [1]: https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/18

Finally!! ;-)
Now if only Wayland can respect the calls such as
CenterOnScreen()/CenterOnParent()
for the dialog-like windows it would be great.

Unfortunately it looks like this will never happen and the application
developers will
have to throw away their software, because apparently dialogs can be
put anywhere
on the screen.

Something like a dialog asking for credentials to login to the DB that
shows up in the
top left corner, because some idiot user set it this way.

Thank you.


More information about the wayland-devel mailing list