libweston: fix output reflow on removal
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>
Thu, 21 Jun 2018 11:26:18 +0000 (14:26 +0300)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Thu, 5 Jul 2018 07:39:13 +0000 (10:39 +0300)
commit9711fd9850739d3b7064e6b407ad37266bf47772
tree21dcca787770808adf5d6aa0083c414866b30c1b
parent82dd54d943effa3c1b3d2a4979c16e760d7ae232
libweston: fix output reflow on removal

This is regression apparently introduced in
0de859ede4bad72b5d3b78e086632f02196d997f, which accidentally swapped the
sign of 'delta_width' in the original call site. If one removes an
output, the remaining outputs on the right are getting moved even
further to the right.

The outputs to the right should be moved to the left instead, to close
the gap left by the removed output.

Reported-by: Tomasz Olszak <olszak.tomasz@gmail.com>
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Ian Ray <ian.ray@ge.com>
libweston/compositor.c