compositor-drm: fix z-order inversion in plane assignment
authorMatt Hoosier <matt.hoosier@gmail.com>
Thu, 24 Aug 2017 14:24:20 +0000 (09:24 -0500)
committerDaniel Stone <daniels@collabora.com>
Mon, 4 Dec 2017 19:11:46 +0000 (19:11 +0000)
commitdf573031d0ba0a810d84784002d18453b0d9b2eb
tree54bc7f39fc2130092ac8fb60533167712b060676
parentd4512f6aa1a8db0b811918593f21e7877041f0c0
compositor-drm: fix z-order inversion in plane assignment

As discussed in the following thread:

https://lists.freedesktop.org/archives/wayland-devel/2017-August/034755.html

the existing plane assignment in the DRM backend is vulnerable to
accidental masking of the intended fullscreen surface. This change
adds a simple stateful memory to the plane assignment algorithm
to prevent that.

Reviewed-by: Daniel Stone <daniels@collabora.com>
libweston/compositor-drm.c