[wayland] Don't delete Surface we got fromWindow

KWayland changed to cache created Surfaces and not create a new one
each time. If we delete it, we run in double deleted situations.
This commit is contained in:
Martin Gräßlin 2015-09-15 12:18:36 +02:00
parent cd254c8f47
commit 16e9c8375c

View file

@ -525,7 +525,7 @@ void ShellClient::findInternalWindow()
}
const QWindowList windows = kwinApp()->topLevelWindows();
for (QWindow *w: windows) {
QScopedPointer<KWayland::Client::Surface> s(KWayland::Client::Surface::fromWindow(w));
auto s = KWayland::Client::Surface::fromWindow(w);
if (!s) {
continue;
}