[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:
parent
cd254c8f47
commit
16e9c8375c
1 changed files with 1 additions and 1 deletions
|
@ -525,7 +525,7 @@ void ShellClient::findInternalWindow()
|
||||||
}
|
}
|
||||||
const QWindowList windows = kwinApp()->topLevelWindows();
|
const QWindowList windows = kwinApp()->topLevelWindows();
|
||||||
for (QWindow *w: windows) {
|
for (QWindow *w: windows) {
|
||||||
QScopedPointer<KWayland::Client::Surface> s(KWayland::Client::Surface::fromWindow(w));
|
auto s = KWayland::Client::Surface::fromWindow(w);
|
||||||
if (!s) {
|
if (!s) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue