[Wayland-bugs] [Bug 89702] Centered shell surfaces

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Mar 21 05:45:46 PDT 2015


https://bugs.freedesktop.org/show_bug.cgi?id=89702

            Bug ID: 89702
           Summary: Centered shell surfaces
           Product: Wayland
           Version: unspecified
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: wayland
          Assignee: wayland-bugs at lists.freedesktop.org
          Reporter: x414e54 at linux.com

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-bugs/attachments/20150321/27e2fb32/attachment.html>


More information about the wayland-bugs mailing list