mirror of
https://github.com/hyprwm/hyprpaper.git
synced 2026-05-07 00:58:15 +02:00
fix
This commit is contained in:
parent
83a7586ad2
commit
ca8c3e4144
2 changed files with 2 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue