From 5f48afd655864484ddb1f6f95b0b263c540bf0db Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Tue, 28 Feb 2023 22:03:04 +0000 Subject: [PATCH] hyprbars: recalc on detach --- hyprbars/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hyprbars/main.cpp b/hyprbars/main.cpp index 43da832..9fe4e6e 100644 --- a/hyprbars/main.cpp +++ b/hyprbars/main.cpp @@ -49,5 +49,6 @@ APICALL EXPORT PLUGIN_DESCRIPTION_INFO PLUGIN_INIT(HANDLE handle) { } APICALL EXPORT void PLUGIN_EXIT() { - ; + for (auto& m : g_pCompositor->m_vMonitors) + m->scheduledRecalc = true; } \ No newline at end of file