desktop: Remove the active surface only if matches the one being displayed 26/24326/3
authorMarius Vlad <marius.vlad@collabora.com>
Sat, 4 Apr 2020 15:25:09 +0000 (18:25 +0300)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Fri, 10 Apr 2020 15:32:56 +0000 (15:32 +0000)
commit1ee1bff64338dede1f72981a6f3787718ce47335
tree1d982c0e4fccfa8dfac6412bce774b7b30e466be
parent0e66ee13b73e3ca218fbd81ba86d3ce8e04d1e54
desktop: Remove the active surface only if matches the one being displayed

We incorrectly removed the active surface being displayed even if it
wasn't the one currently displayed, so this patch only removes the
active surface if the surface being removed is the same as the one being
displayed.

Bug-AGL: SPEC-3318

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: I78c19692d59c3e355b2d140b75d8aadc9d8f2009
src/desktop.c