internal: Reset hasATarget when issuing wallpaper command (#81)

Fixes issue #74

Co-authored-by: Karoline <boothwhack@users.noreply.github.com>
This commit is contained in:
Karoline 2023-08-03 13:00:55 +02:00 committed by GitHub
parent 9261356bd7
commit e498c438b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -270,6 +270,8 @@ void CHyprpaper::clearWallpaperFromMonitor(const std::string& monname) {
if (it != m_mMonitorActiveWallpaperTargets.end())
m_mMonitorActiveWallpaperTargets.erase(it);
PMONITOR->hasATarget = true;
if (PMONITOR->pCurrentLayerSurface) {
PMONITOR->pCurrentLayerSurface = nullptr;