Fix possible crash of the test client
The cursor surface is not in the surfaces list when destroyed Change-Id: Ie29224679776d0abec7862d2976be892c63521a7 Reviewed-by: Robin Burchell <robin.burchell@viroteck.net>
This commit is contained in:
parent
6c9cd444fc
commit
d9ba141df9
@ -291,7 +291,7 @@ void Compositor::addSurface(Surface *surface)
|
||||
|
||||
void Compositor::removeSurface(Surface *surface)
|
||||
{
|
||||
m_surfaces.remove(m_surfaces.indexOf(surface));
|
||||
m_surfaces.removeOne(surface);
|
||||
if (m_keyboard->focus() == surface)
|
||||
m_keyboard->setFocus(0);
|
||||
if (m_pointer->focus() == surface)
|
||||
|
Loading…
x
Reference in New Issue
Block a user