libweston-desktop/xwayland: react to geometry changes
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>
Wed, 18 Jan 2017 13:37:59 +0000 (15:37 +0200)
committerDaniel Stone <daniels@collabora.com>
Thu, 13 Apr 2017 10:37:25 +0000 (11:37 +0100)
commit5f93b9f640b456de0406cc1be9685b3d768ce0c0
tree6a2431bb1e8b08c077e05672f17551a1bfffc51c
parent7ace831ca6205ea288e49fdbd6b63f53e73fae59
libweston-desktop/xwayland: react to geometry changes

Fix up the window position whenever the geometry info changes.

If the window geometry changes, we want to keep the input-responding
content anchored to top-left. It is done by manipulating the dx,dy
arguments originating from a wl_surface.attach request.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Louis-Francis Ratté-Boulianne <lfrb@collabora.com>
Acked-by: Daniel Stone <daniels@collabora.com>
libweston-desktop/xwayland.c