| 513 | } |
| 514 | |
| 515 | void Workspace::stackAbove(Window *window, Window *reference) |
| 516 | { |
| 517 | if (window->isDeleted()) { |
| 518 | qCWarning(KWIN_CORE) << "Workspace::stackAbove: closed window" << window << "cannot be restacked"; |
| 519 | return; |
| 520 | } |
| 521 | |
| 522 | Q_ASSERT(unconstrained_stacking_order.contains(reference)); |
| 523 | if (reference == window) { |
| 524 | return; |
| 525 | } |
| 526 | |
| 527 | unconstrained_stacking_order.removeAll(window); |
| 528 | unconstrained_stacking_order.insert(unconstrained_stacking_order.indexOf(reference) + 1, window); |
| 529 | |
| 530 | m_focusChain->moveBeforeWindow(window, reference); |
| 531 | updateStackingOrder(); |
| 532 | } |
| 533 | |
| 534 | void Workspace::restackWindowUnderActive(Window *window) |
| 535 | { |
no test coverage detected