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 "x11client.h" | 24 | #include "x11client.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 "xdgshellclient.h" | 28 | #include "waylandclient.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 107 Lines • ▼ Show 20 Line(s) | 94 | { | |||
144 | } | 144 | } | ||
145 | 145 | | |||
146 | for (auto vd : m_desktops) { | 146 | for (auto vd : m_desktops) { | ||
147 | connect(vd, &QObject::destroyed, this, [=] { | 147 | connect(vd, &QObject::destroyed, this, [=] { | ||
148 | m_desktops.removeOne(vd); | 148 | m_desktops.removeOne(vd); | ||
149 | }); | 149 | }); | ||
150 | } | 150 | } | ||
151 | 151 | | |||
152 | m_wasWaylandClient = qobject_cast<XdgShellClient *>(c) != nullptr; | 152 | m_wasWaylandClient = qobject_cast<WaylandClient *>(c) != nullptr; | ||
153 | m_wasX11Client = qobject_cast<X11Client *>(c) != nullptr; | 153 | m_wasX11Client = qobject_cast<X11Client *>(c) != nullptr; | ||
154 | m_wasPopupWindow = c->isPopupWindow(); | 154 | m_wasPopupWindow = c->isPopupWindow(); | ||
155 | m_wasOutline = c->isOutline(); | 155 | m_wasOutline = c->isOutline(); | ||
156 | } | 156 | } | ||
157 | 157 | | |||
158 | void Deleted::unrefWindow() | 158 | void Deleted::unrefWindow() | ||
159 | { | 159 | { | ||
160 | if (--delete_refcount > 0) | 160 | if (--delete_refcount > 0) | ||
▲ Show 20 Lines • Show All 157 Lines • Show Last 20 Lines |