Changeset View
Changeset View
Standalone View
Standalone View
deleted.cpp
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Line(s) | 37 | Deleted::Deleted() | |||
---|---|---|---|---|---|
47 | , m_decorationRenderer(nullptr) | 47 | , m_decorationRenderer(nullptr) | ||
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 | { | 56 | { | ||
56 | } | 57 | } | ||
57 | 58 | | |||
58 | Deleted::~Deleted() | 59 | Deleted::~Deleted() | ||
59 | { | 60 | { | ||
60 | if (delete_refcount != 0) | 61 | if (delete_refcount != 0) | ||
61 | qCCritical(KWIN_CORE) << "Deleted client has non-zero reference count (" << delete_refcount << ")"; | 62 | qCCritical(KWIN_CORE) << "Deleted client has non-zero reference count (" << delete_refcount << ")"; | ||
62 | assert(delete_refcount == 0); | 63 | assert(delete_refcount == 0); | ||
▲ Show 20 Lines • Show All 74 Lines • ▼ Show 20 Line(s) | 110 | if (AbstractClient *client = dynamic_cast<AbstractClient*>(c)) { | |||
137 | m_wasActive = client->isActive(); | 138 | m_wasActive = client->isActive(); | ||
138 | 139 | | |||
139 | const auto *x11Client = qobject_cast<Client *>(client); | 140 | const auto *x11Client = qobject_cast<Client *>(client); | ||
140 | m_wasGroupTransient = x11Client && x11Client->groupTransient(); | 141 | m_wasGroupTransient = x11Client && x11Client->groupTransient(); | ||
141 | } | 142 | } | ||
142 | 143 | | |||
143 | m_wasWaylandClient = qobject_cast<ShellClient *>(c) != nullptr; | 144 | m_wasWaylandClient = qobject_cast<ShellClient *>(c) != nullptr; | ||
144 | m_wasX11Client = !m_wasWaylandClient; | 145 | m_wasX11Client = !m_wasWaylandClient; | ||
146 | m_wasPopupWindow = c->isPopupWindow(); | ||||
145 | } | 147 | } | ||
146 | 148 | | |||
147 | void Deleted::unrefWindow() | 149 | void Deleted::unrefWindow() | ||
148 | { | 150 | { | ||
149 | if (--delete_refcount > 0) | 151 | if (--delete_refcount > 0) | ||
150 | return; | 152 | return; | ||
151 | // needs to be delayed | 153 | // needs to be delayed | ||
152 | // a) when calling from effects, otherwise it'd be rather complicated to handle the case of the | 154 | // a) when calling from effects, otherwise it'd be rather complicated to handle the case of the | ||
▲ Show 20 Lines • Show All 125 Lines • Show Last 20 Lines |