Changeset View
Changeset View
Standalone View
Standalone View
deleted.cpp
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Line(s) | 37 | Deleted::Deleted() | |||
---|---|---|---|---|---|
48 | , m_fullscreen(false) | 48 | , m_fullscreen(false) | ||
49 | , m_keepAbove(false) | 49 | , m_keepAbove(false) | ||
50 | , m_keepBelow(false) | 50 | , m_keepBelow(false) | ||
51 | , m_wasActive(false) | 51 | , m_wasActive(false) | ||
52 | , m_wasX11Client(false) | 52 | , m_wasX11Client(false) | ||
53 | , m_wasWaylandClient(false) | 53 | , m_wasWaylandClient(false) | ||
54 | , m_wasGroupTransient(false) | 54 | , m_wasGroupTransient(false) | ||
55 | , m_wasPopupWindow(false) | 55 | , m_wasPopupWindow(false) | ||
56 | , m_wasOutline(false) | ||||
56 | { | 57 | { | ||
57 | } | 58 | } | ||
58 | 59 | | |||
59 | Deleted::~Deleted() | 60 | Deleted::~Deleted() | ||
60 | { | 61 | { | ||
61 | if (delete_refcount != 0) | 62 | if (delete_refcount != 0) | ||
62 | qCCritical(KWIN_CORE) << "Deleted client has non-zero reference count (" << delete_refcount << ")"; | 63 | qCCritical(KWIN_CORE) << "Deleted client has non-zero reference count (" << delete_refcount << ")"; | ||
63 | assert(delete_refcount == 0); | 64 | assert(delete_refcount == 0); | ||
▲ Show 20 Lines • Show All 80 Lines • ▼ Show 20 Line(s) | 144 | for (auto vd : m_desktops) { | |||
144 | connect(vd, &QObject::destroyed, this, [=] { | 145 | connect(vd, &QObject::destroyed, this, [=] { | ||
145 | m_desktops.removeOne(vd); | 146 | m_desktops.removeOne(vd); | ||
146 | }); | 147 | }); | ||
147 | } | 148 | } | ||
148 | 149 | | |||
149 | m_wasWaylandClient = qobject_cast<ShellClient *>(c) != nullptr; | 150 | m_wasWaylandClient = qobject_cast<ShellClient *>(c) != nullptr; | ||
150 | m_wasX11Client = !m_wasWaylandClient; | 151 | m_wasX11Client = !m_wasWaylandClient; | ||
151 | m_wasPopupWindow = c->isPopupWindow(); | 152 | m_wasPopupWindow = c->isPopupWindow(); | ||
153 | m_wasOutline = c->isOutline(); | ||||
152 | } | 154 | } | ||
153 | 155 | | |||
154 | void Deleted::unrefWindow() | 156 | void Deleted::unrefWindow() | ||
155 | { | 157 | { | ||
156 | if (--delete_refcount > 0) | 158 | if (--delete_refcount > 0) | ||
157 | return; | 159 | return; | ||
158 | // needs to be delayed | 160 | // needs to be delayed | ||
159 | // a) when calling from effects, otherwise it'd be rather complicated to handle the case of the | 161 | // a) when calling from effects, otherwise it'd be rather complicated to handle the case of the | ||
▲ Show 20 Lines • Show All 139 Lines • Show Last 20 Lines |