| 351 | } |
| 352 | |
| 353 | static SDispatchResult dispatchOpenOverview(std::string arg) { |
| 354 | if (arg.contains("all")) { |
| 355 | for (auto& widget : g_overviewWidgets) { |
| 356 | if (!widget->isActive()) widget->show(); |
| 357 | } |
| 358 | } |
| 359 | else { |
| 360 | auto currentMonitor = g_pCompositor->getMonitorFromCursor(); |
| 361 | auto widget = getWidgetForMonitor(currentMonitor); |
| 362 | if (widget) |
| 363 | if (!widget->isActive()) widget->show(); |
| 364 | } |
| 365 | return SDispatchResult{}; |
| 366 | } |
| 367 | |
| 368 | static SDispatchResult dispatchCloseOverview(std::string arg) { |
| 369 | if (arg.contains("all")) { |
nothing calls this directly
no test coverage detected