Hi Nancy On Fri, 25 Sep 2015 07:03:41 +0000 Nancy Zou <l...@qti.qualcomm.com> wrote:
> Dear All: > > Can I ask why desktop shell create a new window with random initial > position? So that people who assume anything about the window position would get caught. Non-deterministic positioning logic is good for that. A lesser reason is that we have not bothered with implementing any nice initial window positioning logic, and personally I think we don't even want that in Weston's desktop shell. > Can I modify it to fixed position in > weston_view_set_initial_position? Please do not. Clients should not assume anything about the initial top-level window position when not maximized or fullscreened. > How can the Weston client get the > window initial position? They cannot. There is no public coordinate space to even describe it with. See e.g. https://www.youtube.com/watch?v=_FjuPn7MXMs It is a design decision in Wayland/desktop to not expose absolute window positions to clients at all. This means that you simply cannot know where a top-level window is precisely, you can only know which outputs it overlaps with. Windows that are not top-level can often be placed relative to another wl_surface. This is the only form of precise positioning supported on desktops. Thanks, pq
pgpvwMQjkhEBt.pgp
Description: OpenPGP digital signature
_______________________________________________ wayland-devel mailing list wayland-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/wayland-devel