libweston-desktop/xdg-shell: Check window geometry instead of surface size against...
authorPhilipp Kerling <pkerling@casix.org>
Wed, 26 Jul 2017 12:02:21 +0000 (14:02 +0200)
committerQuentin Glidic <sardemff7+git@sardemff7.net>
Wed, 26 Jul 2017 14:46:13 +0000 (16:46 +0200)
commitc623902ecaa191c7eccfcb7c212313407da82c56
treeb9f9f1b1a83343cbac6e21232340443503bd1167
parentba8a0d041ed83ebe18b919d8b2c8a02849ca1c7e
libweston-desktop/xdg-shell: Check window geometry instead of surface size against configured size

Shell surfaces may have a geometry that is different to the size of
their main surface, e.g. due to subcompositing.

In states where size is strictly enforced (fullscreen and maximized),
the size that the compositor wants must be checked against the window
geometry and not just the main surface size.

Fix by calling weston_desktop_surface_get_geometry and using that size
instead of main surface size.

Signed-off-by: Philipp Kerling <pkerling@casix.org>
Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net>
libweston-desktop/xdg-shell-v5.c
libweston-desktop/xdg-shell-v6.c