libweston-desktop/xdg-shell-v6: Actually send same-as-current configure if needed
authorQuentin Glidic <sardemff7+git@sardemff7.net>
Tue, 17 Oct 2017 14:14:49 +0000 (16:14 +0200)
committerQuentin Glidic <sardemff7+git@sardemff7.net>
Wed, 18 Oct 2017 09:04:30 +0000 (11:04 +0200)
commitefade28db954ad02ac283a626238df04bae146da
treedc801f1f83ce9cc9ac4dc683aaaa1013fa3f62f4
parent71ebc052505732b26591b2a5bc5a8be9b7c3e09f
libweston-desktop/xdg-shell-v6: Actually send same-as-current configure if needed

If a surface is in state A, and we just sent a configure for state B,
setting back state A would be ignored, because state B has not been
committed yet.
Now, we check against the latest configured state (which is current
state if configure list is empty).

Reported on wlroots https://github.com/swaywm/wlroots/pull/280

Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
Reviewed-by: Jonas Ã…dahl <jadahl@gmail.com>
libweston-desktop/xdg-shell-v6.c