Changeset View
Changeset View
Standalone View
Standalone View
workspace.cpp
Show First 20 Lines • Show All 549 Lines • ▼ Show 20 Line(s) | 543 | for (ToplevelList::const_iterator it = stack.constBegin(), end = stack.constEnd(); it != end; ++it) { | |||
---|---|---|---|---|---|
550 | // No removeClient() is called, it does more than just removing. | 550 | // No removeClient() is called, it does more than just removing. | ||
551 | // However, remove from some lists to e.g. prevent performTransiencyCheck() | 551 | // However, remove from some lists to e.g. prevent performTransiencyCheck() | ||
552 | // from crashing. | 552 | // from crashing. | ||
553 | clients.removeAll(c); | 553 | clients.removeAll(c); | ||
554 | m_allClients.removeAll(c); | 554 | m_allClients.removeAll(c); | ||
555 | desktops.removeAll(c); | 555 | desktops.removeAll(c); | ||
556 | } | 556 | } | ||
557 | Client::cleanupX11(); | 557 | Client::cleanupX11(); | ||
558 | | ||||
559 | if (waylandServer()) { | ||||
560 | const QList<ShellClient *> shellClients = waylandServer()->clients(); | ||||
561 | for (ShellClient *shellClient : shellClients) { | ||||
562 | shellClient->destroyClient(); | ||||
563 | } | ||||
564 | | ||||
565 | const QList<ShellClient *> internalClients = waylandServer()->internalClients(); | ||||
566 | for (ShellClient *internalClient : internalClients) { | ||||
567 | internalClient->destroyClient(); | ||||
568 | } | ||||
569 | } | ||||
570 | | ||||
558 | for (UnmanagedList::iterator it = unmanaged.begin(), end = unmanaged.end(); it != end; ++it) | 571 | for (UnmanagedList::iterator it = unmanaged.begin(), end = unmanaged.end(); it != end; ++it) | ||
559 | (*it)->release(ReleaseReason::KWinShutsDown); | 572 | (*it)->release(ReleaseReason::KWinShutsDown); | ||
560 | 573 | | |||
561 | if (auto c = kwinApp()->x11Connection()) { | 574 | if (auto c = kwinApp()->x11Connection()) { | ||
562 | xcb_delete_property(c, kwinApp()->x11RootWindow(), atoms->kwin_running); | 575 | xcb_delete_property(c, kwinApp()->x11RootWindow(), atoms->kwin_running); | ||
563 | } | 576 | } | ||
564 | 577 | | |||
565 | for (auto it = deleted.begin(); it != deleted.end();) { | 578 | for (auto it = deleted.begin(); it != deleted.end();) { | ||
▲ Show 20 Lines • Show All 1224 Lines • Show Last 20 Lines |