Changeset View
Changeset View
Standalone View
Standalone View
deleted.cpp
Show All 19 Lines | |||||
20 | 20 | | |||
21 | #include "deleted.h" | 21 | #include "deleted.h" | ||
22 | 22 | | |||
23 | #include "workspace.h" | 23 | #include "workspace.h" | ||
24 | #include "client.h" | 24 | #include "client.h" | ||
25 | #include "group.h" | 25 | #include "group.h" | ||
26 | #include "netinfo.h" | 26 | #include "netinfo.h" | ||
27 | #include "shadow.h" | 27 | #include "shadow.h" | ||
28 | #include "shell_client.h" | 28 | #include "xdgshellclient.h" | ||
29 | #include "decorations/decoratedclient.h" | 29 | #include "decorations/decoratedclient.h" | ||
30 | #include "decorations/decorationrenderer.h" | 30 | #include "decorations/decorationrenderer.h" | ||
31 | 31 | | |||
32 | #include <QDebug> | 32 | #include <QDebug> | ||
33 | 33 | | |||
34 | namespace KWin | 34 | namespace KWin | ||
35 | { | 35 | { | ||
36 | 36 | | |||
▲ Show 20 Lines • Show All 104 Lines • ▼ Show 20 Line(s) | 94 | { | |||
141 | } | 141 | } | ||
142 | 142 | | |||
143 | for (auto vd : m_desktops) { | 143 | for (auto vd : m_desktops) { | ||
144 | connect(vd, &QObject::destroyed, this, [=] { | 144 | connect(vd, &QObject::destroyed, this, [=] { | ||
145 | m_desktops.removeOne(vd); | 145 | m_desktops.removeOne(vd); | ||
146 | }); | 146 | }); | ||
147 | } | 147 | } | ||
148 | 148 | | |||
149 | m_wasWaylandClient = qobject_cast<ShellClient *>(c) != nullptr; | 149 | m_wasWaylandClient = qobject_cast<XdgShellClient *>(c) != nullptr; | ||
150 | m_wasX11Client = qobject_cast<Client *>(c) != nullptr; | 150 | m_wasX11Client = qobject_cast<Client *>(c) != nullptr; | ||
151 | m_wasPopupWindow = c->isPopupWindow(); | 151 | m_wasPopupWindow = c->isPopupWindow(); | ||
152 | m_wasOutline = c->isOutline(); | 152 | m_wasOutline = c->isOutline(); | ||
153 | } | 153 | } | ||
154 | 154 | | |||
155 | void Deleted::unrefWindow() | 155 | void Deleted::unrefWindow() | ||
156 | { | 156 | { | ||
157 | if (--delete_refcount > 0) | 157 | if (--delete_refcount > 0) | ||
▲ Show 20 Lines • Show All 147 Lines • Show Last 20 Lines |