mirror of
https://github.com/hyprwm/hyprlock.git
synced 2026-01-04 00:00:11 +01:00
background: unload screenshots when monitor is removed
This is just for testing as of now. No merging.
This commit is contained in:
parent
a7f2634a9e
commit
51391879fa
1 changed files with 4 additions and 0 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue