| 367 | #endif |
| 368 | |
| 369 | QList<KWin::Window *> WorkspaceWrapper::windowAt(const QPointF &pos, int count) const |
| 370 | { |
| 371 | QList<KWin::Window *> result; |
| 372 | int found = 0; |
| 373 | const QList<Window *> &stacking = workspace()->stackingOrder(); |
| 374 | if (stacking.isEmpty()) { |
| 375 | return result; |
| 376 | } |
| 377 | auto it = stacking.end(); |
| 378 | do { |
| 379 | if (found == count) { |
| 380 | return result; |
| 381 | } |
| 382 | --it; |
| 383 | Window *window = (*it); |
| 384 | if (window->isDeleted()) { |
| 385 | continue; |
| 386 | } |
| 387 | if (!window->isOnCurrentActivity() || !window->isOnCurrentDesktop() || window->isMinimized() || window->isHidden() || window->isHiddenByShowDesktop()) { |
| 388 | continue; |
| 389 | } |
| 390 | if (window->hitTest(pos)) { |
| 391 | result.append(window); |
| 392 | found++; |
| 393 | } |
| 394 | } while (it != stacking.begin()); |
| 395 | return result; |
| 396 | } |
| 397 | |
| 398 | bool WorkspaceWrapper::isEffectActive(const QString &pluginId) const |
| 399 | { |
nothing calls this directly
no test coverage detected