X11 applications expect -geometry command line option to work for setting the initial window position, but currently this does not work.
Add provision to relay the initial position through libweston-desktop:- weston_desktop_api gains a new entry set_xwayland_position- implement set_toplevel_with_position() in xwayland internal interface
Once xwayland plugin starts calling set_toplevel_with_position(), libweston-desktop can relay that information to a shell if the shell wants to hear it.
If a shell does not implement the set_xwayland_position hook, the old behaviour remains: the shell positions xwayland toplevels like any other.
37111e1 libweston-desktop: add set_xwayland_position API
libweston-desktop/internal.h | 5 +++++
libweston-desktop/libweston-desktop.c | 10 ++++++++++
libweston-desktop/libweston-desktop.h | 33 +++++++++++++++++++++++++++++++++
libweston-desktop/xwayland.c | 11 +++++++++++
4 files changed, 59 insertions(+)