From 16e9c8375c59b27e2df9cca927604b123910d8f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Tue, 15 Sep 2015 12:18:36 +0200 Subject: [PATCH] [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. --- shell_client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell_client.cpp b/shell_client.cpp index 2eba9ebece..2bcb7a8f21 100644 --- a/shell_client.cpp +++ b/shell_client.cpp @@ -525,7 +525,7 @@ void ShellClient::findInternalWindow() } const QWindowList windows = kwinApp()->topLevelWindows(); for (QWindow *w: windows) { - QScopedPointer s(KWayland::Client::Surface::fromWindow(w)); + auto s = KWayland::Client::Surface::fromWindow(w); if (!s) { continue; }