background: unload screenshots when monitor is removed

This is just for testing as of now. No merging.
This commit is contained in:
Maximilian Seidler 2025-09-17 17:45:42 +02:00
parent a7f2634a9e
commit 51391879fa

View file

@ -7,6 +7,7 @@
#include "../../helpers/MiscFunctions.hpp"
#include "../../core/AnimationManager.hpp"
#include "../../config/ConfigManager.hpp"
#include "src/renderer/AsyncResourceGatherer.hpp"
#include <chrono>
#include <hyprlang.hpp>
#include <filesystem>
@ -89,6 +90,9 @@ void CBackground::reset() {
reloadTimer.reset();
}
if (g_pAsyncResourceGatherer && scAsset)
g_pAsyncResourceGatherer->unloadAsset(scAsset);
blurredFB->destroyBuffer();
pendingBlurredFB->destroyBuffer();
}