From 28b6db4993612ae7c7244faa07420b19e373b418 Mon Sep 17 00:00:00 2001 From: Gang Wu Date: Tue, 3 Nov 2020 20:30:48 +0800 Subject: [PATCH] correct the surface id --- toplevel.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/toplevel.cpp b/toplevel.cpp index bfd0098f09..5b3884533c 100644 --- a/toplevel.cpp +++ b/toplevel.cpp @@ -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(); }