clients/desktop-shell: avoid invalid sized background
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>
Thu, 7 Dec 2017 10:15:01 +0000 (12:15 +0200)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Mon, 12 Feb 2018 11:14:39 +0000 (13:14 +0200)
commitcb1153804948d184ddcd4d0b42710639e3369971
tree71437bd92d9a9e8a172ebe541fe23d8da3ea886d
parent3995ffaf3d18acef6296861645ac2b22f72f9b88
clients/desktop-shell: avoid invalid sized background

If for some reason the desktop-shell plugin would configure a background
with an invalid size, just destroy the whole background and forget
about it for this wl_output.

A following patch will cause desktop-shell to configure 0x0 background
when it deems the background redundant.

Fortify weston-desktop-shell against not every output having a
background.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Daniel Stone <daniels@collabora.com>
clients/desktop-shell.c