Commit 3d3fcd7a authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

tablet: Leave the surface we were previously on, not the one we are going to

This sometimes results in a crash and it's logically wrong as it was.
parent 47c08d6f
Pipeline #196425 passed with stage
in 30 minutes and 43 seconds
......@@ -590,7 +590,7 @@ void TabletPadV2Interface::setCurrentSurface(SurfaceInterface *surface, TabletV2
if (d->m_currentSurface) {
d->send_leave(d->m_display->nextSerial(), surface->resource());
d->send_leave(d->resourceForSurface(d->m_currentSurface), d->m_display->nextSerial(), d->m_currentSurface->resource());
d->m_currentSurface = surface;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment