This commit is contained in:
Vaxry 2025-12-02 12:20:18 +00:00
parent 83a7586ad2
commit ca8c3e4144
Signed by: vaxry
GPG key ID: 665806380871D640
2 changed files with 2 additions and 1 deletions

View file

@ -21,6 +21,7 @@ void CWallpaperMatcher::registerOutput(const std::string_view& s) {
void CWallpaperMatcher::unregisterOutput(const std::string_view& s) {
std::erase(m_monitorNames, s);
std::erase_if(m_monitorStates, [&s](const auto& e) { return e.name == s; });
recalcStates();
}

View file

@ -36,7 +36,7 @@ CWallpaperTarget::CWallpaperTarget(SP<Hyprtoolkit::IOutput> output, const std::s
->path(std::string{path})
->size({Hyprtoolkit::CDynamicSize::HT_SIZE_PERCENT, Hyprtoolkit::CDynamicSize::HT_SIZE_PERCENT, {1.F, 1.F}})
->sync(true)
->fitMode(Hyprtoolkit::IMAGE_FIT_MODE_COVER)
->fitMode(fitMode)
->commence();
m_image->setPositionMode(Hyprtoolkit::IElement::HT_POSITION_ABSOLUTE);