Commit 98eb8664 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧 Committed by Vlad Zahorodnii
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.


(cherry picked from commit 3d3fcd7a)
parent 3bac0cd0
Pipeline #196427 passed with stage
in 39 minutes and 39 seconds
......@@ -589,7 +589,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