@@ -41,6 +41,7 @@ ShellApplication::ShellApplication(int & argc, char ** argv, bool isMirServer)
4141 setOrganizationName(QStringLiteral("Canonical"));
4242
4343 connect(this, &QGuiApplication::screenAdded, this, &ShellApplication::onScreenAdded);
44+ connect(this, &QGuiApplication::screenRemoved, this, &ShellApplication::onScreenRemoved);
4445
4546 setupQmlEngine(isMirServer);
4647
@@ -198,7 +199,7 @@ void ShellApplication::onScreenAdded(QScreen * /*screen*/)
198199 }
199200}
200201
201−void ShellApplication::onScreenAboutToBeRemoved(QScreen *screen)
202+void ShellApplication::onScreenRemoved(QScreen *screen)
202203{
203204 // TODO: Support an arbitrary number of screens and different policies
204205 // (eg cloned desktop, several desktops, etc)