Destroy xdg shell clients when surface is still alive

Destroy xdg shell clients when the aboutToBeDestroyed() signal has been
emitted in order to ensure that no NULL surface is going to be accessed.
remotes/origin/work/focusActivate
Vlad Zahorodnii 6 years ago
parent 036ad759e0
commit 6139ea7874
  1. 2
      xdgshellclient.cpp

@ -74,7 +74,7 @@ XdgSurfaceClient::XdgSurfaceClient(XdgSurfaceInterface *shellSurface)
connect(shellSurface->surface(), &SurfaceInterface::mapped,
this, &XdgSurfaceClient::setReadyForPainting);
#endif
connect(shellSurface->surface(), &SurfaceInterface::destroyed,
connect(shellSurface->surface(), &SurfaceInterface::aboutToBeDestroyed,
this, &XdgSurfaceClient::destroyClient);
// The effective window geometry is determined by two things: (a) the rectangle that bounds

Loading…
Cancel
Save