Centered/Splash shell surfaces
Submitted by x41..@..ux.com
Assigned to Wayland bug list
I am trying to implement a splash screen which needs to start centered both vertically and horizontally when not fullscreen or maximized. Currently I am using wl_shell_surface but there is no way to advise this to the compositor.
I have looked at xdg-shell.xml and there is set_window_geometry with an x and y co-ordinates but I assume they only work if the surface has a parent?
If they do work without a parent what are they relative to? If the dimensions of whatever the splash surface is relative to change then it would no longer be centered.
This would need an interface similar to the CSS "margin" where the surface could be set to "auto" would always be centered (until the user moved it). After the user moves the surface it should not be able to re-center itself.