hyprland-plugins/hyprexpo/OverviewPassElement.cpp
2024-12-22 16:33:12 +00:00

33 lines
724 B
C++

#include "OverviewPassElement.hpp"
#include <hyprland/src/render/OpenGL.hpp>
#include "overview.hpp"
COverviewPassElement::COverviewPassElement() {
;
}
void COverviewPassElement::draw(const CRegion& damage) {
g_pOverview->fullRender();
}
bool COverviewPassElement::needsLiveBlur() {
return false;
}
bool COverviewPassElement::needsPrecomputeBlur() {
return false;
}
std::optional<CBox> COverviewPassElement::boundingBox() {
if (!g_pOverview->pMonitor)
return std::nullopt;
return CBox{{}, g_pOverview->pMonitor->vecSize};
}
CRegion COverviewPassElement::opaqueRegion() {
if (!g_pOverview->pMonitor)
return CRegion{};
return CBox{{}, g_pOverview->pMonitor->vecSize};
}