correct the surface id
This commit is contained in:
parent
1caf9f61d6
commit
28b6db4993
1 changed files with 2 additions and 0 deletions
|
@ -735,8 +735,10 @@ void Toplevel::setSurface(KWaylandServer::SurfaceInterface *surface)
|
|||
connect(m_surface, &SurfaceInterface::destroyed, this,
|
||||
[this] {
|
||||
m_surface = nullptr;
|
||||
m_surfaceId = 0;
|
||||
}
|
||||
);
|
||||
m_surfaceId = surface->id();
|
||||
emit surfaceChanged();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue