From e498c438b1e16dcf32ecb3030b20b83f7ed9ff6d Mon Sep 17 00:00:00 2001 From: Karoline <19309513+Boothwhack@users.noreply.github.com> Date: Thu, 3 Aug 2023 13:00:55 +0200 Subject: [PATCH] internal: Reset hasATarget when issuing wallpaper command (#81) Fixes issue #74 Co-authored-by: Karoline --- src/Hyprpaper.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Hyprpaper.cpp b/src/Hyprpaper.cpp index 8923868..96d3300 100644 --- a/src/Hyprpaper.cpp +++ b/src/Hyprpaper.cpp @@ -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;