Commit c487f0a6 authored by Gang Wu's avatar Gang Wu Committed by Roman Gilg
Browse files

fix: correct the surface id

parent 0344752d
......@@ -768,10 +768,12 @@ void Toplevel::setSurface(Wrapland::Server::Surface *surface)
connect(m_surface, &Surface::destroyed, this,
[this] {
m_surface = nullptr;
m_surfaceId = 0;
disconnect(this, &Toplevel::frame_geometry_changed, this, &Toplevel::updateClientOutputs);
disconnect(screens(), &Screens::changed, this, &Toplevel::updateClientOutputs);
m_surfaceId = surface->id();
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