weston/libweston-desktop
Pekka Paalanen 37111e157a libweston-desktop: add set_xwayland_position API
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.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net>
Reviewed-by: Daniel Stone <daniels@collabora.com>
2017-01-18 13:21:02 +02:00
..
client.c Introduce libweston-desktop 2016-08-14 09:29:00 +02:00
internal.h libweston-desktop: add set_xwayland_position API 2017-01-18 13:21:02 +02:00
libweston-desktop.c libweston-desktop: add set_xwayland_position API 2017-01-18 13:21:02 +02:00
libweston-desktop.h libweston-desktop: add set_xwayland_position API 2017-01-18 13:21:02 +02:00
libweston-desktop.pc.in libweston-desktop: Fix libweston-desktop.pc 2016-08-15 11:46:46 +03:00
seat.c Introduce libweston-desktop 2016-08-14 09:29:00 +02:00
surface.c libweston-desktop: don't crash when getting the pid for X clients 2016-12-08 11:58:18 +01:00
wl-shell.c libweston-desktop: destroy wl_shell_surface after the wl_surface is destroyed 2016-10-14 10:52:36 +02:00
xdg-shell-v5.c Don't prepend protocol/ to include paths 2016-11-29 09:49:00 +00:00
xdg-shell-v6.c Don't prepend protocol/ to include paths 2016-11-29 09:49:00 +00:00
xwayland.c libweston-desktop: add set_xwayland_position API 2017-01-18 13:21:02 +02:00