Fix testTabletInterface

This commit is contained in:
Aleix Pol 2020-03-20 01:06:28 +01:00
parent d4dad00b52
commit a20f5db598

View file

@ -155,6 +155,9 @@ public:
wl_resource *targetResource()
{
if (!m_surface)
return nullptr;
ClientConnection *client = m_surface->client();
const Resource *r = resourceMap().value(*client);
return r ? r->handle : nullptr;