Changeset View
Changeset View
Standalone View
Standalone View
deleted.cpp
Show First 20 Lines • Show All 248 Lines • ▼ Show 20 Line(s) | 248 | { | |||
---|---|---|---|---|---|
249 | return m_opacity; | 249 | return m_opacity; | ||
250 | } | 250 | } | ||
251 | 251 | | |||
252 | QByteArray Deleted::windowRole() const | 252 | QByteArray Deleted::windowRole() const | ||
253 | { | 253 | { | ||
254 | return m_windowRole; | 254 | return m_windowRole; | ||
255 | } | 255 | } | ||
256 | 256 | | |||
257 | QVector<uint> Deleted::x11DesktopIds() const | ||||
258 | { | ||||
259 | const auto desks = desktops(); | ||||
260 | QVector<uint> x11Ids; | ||||
261 | x11Ids.reserve(desks.count()); | ||||
262 | std::transform(desks.constBegin(), desks.constEnd(), | ||||
263 | std::back_inserter(x11Ids), | ||||
264 | [] (const VirtualDesktop *vd) { | ||||
265 | return vd->x11DesktopNumber(); | ||||
266 | } | ||||
267 | ); | ||||
268 | return x11Ids; | ||||
269 | } | ||||
270 | | ||||
257 | void Deleted::addTransient(Deleted *transient) | 271 | void Deleted::addTransient(Deleted *transient) | ||
258 | { | 272 | { | ||
259 | m_transients.append(transient); | 273 | m_transients.append(transient); | ||
260 | } | 274 | } | ||
261 | 275 | | |||
262 | void Deleted::removeTransient(Deleted *transient) | 276 | void Deleted::removeTransient(Deleted *transient) | ||
263 | { | 277 | { | ||
264 | m_transients.removeAll(transient); | 278 | m_transients.removeAll(transient); | ||
Show All 15 Lines |