Changeset View
Changeset View
Standalone View
Standalone View
libtaskmanager/xwindowtasksmodel.cpp
Show First 20 Lines • Show All 308 Lines • ▼ Show 20 Line(s) | 306 | } else if (properties2 & NET::WM2TransientFor) { | |||
---|---|---|---|---|---|
309 | if (info.hasState(NET::DemandsAttention)) { | 309 | if (info.hasState(NET::DemandsAttention)) { | ||
310 | WId oldLeader = info.transientFor(); | 310 | WId oldLeader = info.transientFor(); | ||
311 | QMutableHashIterator<WId, WId> i(transientsDemandingAttention); | 311 | QMutableHashIterator<WId, WId> i(transientsDemandingAttention); | ||
312 | 312 | | |||
313 | while (i.hasNext()) { | 313 | while (i.hasNext()) { | ||
314 | i.next(); | 314 | i.next(); | ||
315 | 315 | | |||
316 | if (i.value() == window) { | 316 | if (i.value() == window) { | ||
317 | i.remove(); | | |||
318 | oldLeader = i.key(); | 317 | oldLeader = i.key(); | ||
318 | i.remove(); | ||||
319 | } | 319 | } | ||
320 | } | 320 | } | ||
321 | 321 | | |||
322 | if (oldLeader != 0) { | 322 | if (oldLeader != 0) { | ||
323 | const WId leader = info.transientFor(); | 323 | const WId leader = info.transientFor(); | ||
324 | transientsDemandingAttention.insertMulti(leader, window); | 324 | transientsDemandingAttention.insertMulti(leader, window); | ||
325 | dataChanged(oldLeader, QVector<int>{IsDemandingAttention}); | 325 | dataChanged(oldLeader, QVector<int>{IsDemandingAttention}); | ||
326 | dataChanged(leader, QVector<int>{IsDemandingAttention}); | 326 | dataChanged(leader, QVector<int>{IsDemandingAttention}); | ||
▲ Show 20 Lines • Show All 1015 Lines • Show Last 20 Lines |