xwm: let the shells decide the position of X windows
authorGiulio Camuffo <giuliocamuffo@gmail.com>
Fri, 11 Dec 2015 18:57:05 +0000 (20:57 +0200)
committerDerek Foreman <derekf@osg.samsung.com>
Fri, 18 Dec 2015 17:48:25 +0000 (11:48 -0600)
commitf05d18f3ee8b7d25017bf3ca58561ec5ababbd63
treeec7f91da89b49f66bb7a354b60fb94da7c9e9583
parentc112e0c5bc8198eeb5caf93d8a146d6723ab8bfe
xwm: let the shells decide the position of X windows

The xwm used to automatically send to Xwayland the position of X windows
when that changed, using the x,y of the primary view of the surface.
This works fine for the desktop shell but less so for others.
This patch adds a 'send_position' vfunc to the weston_shell_client that
the shell will call when it wants to let Xwayland know what the position
of a window is.
The logic used by the desktop-shell for that is exactly the same the xwm
used to have.
Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: David Fort <contact@hardening-consulting.com>
desktop-shell/shell.c
desktop-shell/shell.h
src/compositor.h
xwayland/window-manager.c
xwayland/xwayland.h