MCPcopy Create free account
hub / github.com/KZDKM/Hyprspace / dispatchOpenOverview

Function dispatchOpenOverview

src/main.cpp:353–366  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

351}
352
353static 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
368static SDispatchResult dispatchCloseOverview(std::string arg) {
369 if (arg.contains("all")) {

Callers

nothing calls this directly

Calls 3

getWidgetForMonitorFunction · 0.85
isActiveMethod · 0.80
showMethod · 0.80

Tested by

no test coverage detected