Commit 28b6db49 authored by Gang Wu's avatar Gang Wu Committed by Gang Wu
Browse files

correct the surface id

parent 1caf9f61
...@@ -735,8 +735,10 @@ void Toplevel::setSurface(KWaylandServer::SurfaceInterface *surface) ...@@ -735,8 +735,10 @@ void Toplevel::setSurface(KWaylandServer::SurfaceInterface *surface)
connect(m_surface, &SurfaceInterface::destroyed, this, connect(m_surface, &SurfaceInterface::destroyed, this,
[this] { [this] {
m_surface = nullptr; m_surface = nullptr;
m_surfaceId = 0;
} }
); );
m_surfaceId = surface->id();
emit surfaceChanged(); emit surfaceChanged();
} }
......
Markdown is supported
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