Skip to content

Commit 9261356

Browse files
authored
Clear wallpaper from monitor before destroying ouput (#79)
Fixes issue #54.
1 parent 5d89689 commit 9261356

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/events/Events.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ void Events::handleGlobalRemove(void *data, struct wl_registry *registry, uint32
137137
for (auto& m : g_pHyprpaper->m_vMonitors) {
138138
if (m->wayland_name == name) {
139139
Debug::log(LOG, "Destroying output %s", m->name.c_str());
140+
g_pHyprpaper->clearWallpaperFromMonitor(m->name);
140141
std::erase_if(g_pHyprpaper->m_vMonitors, [&](const auto& other) { return other->wayland_name == name; });
141142
return;
142143
}

0 commit comments

Comments
 (0)