Sizing of TLW

Igor Korot ikorot01 at gmail.com
Fri Apr 11 17:38:26 UTC 2025


Hi, ALL,
id like to ask - why people here decided not to allow
SetPosition()/SetSize() for the TLW to be available?

Imagine you work on the text editor. Initially the text editor window
should come up empty.

Does this mean that the size of the main window will be very small?

Or consider working on graphic editor. Main window working area will either
be empty or it will not contain any controls - just painting figures. Which
means the size of the window cannot be determined.

How do developers should handle all this across different compositor?

Also - for both use-cases. Let's say i call CenterOnScreen() for the TLW.
In this case as any normal/salesperson, I'd expect the program to be
centered on the screen 0 on the first run. And then on any subsequent runs
it will be retrieved from the user preferences.

Again - that what normal, sane person would expect for both position and
size.

If I can get how people handle this under wayland (all 3 scenarios), I
would be really grateful.

Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20250411/c8a21505/attachment.htm>


More information about the wayland-devel mailing list