From 56de72f357222beca94e3d4f8152e2523a22c0b3 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Thu, 2 May 2024 02:17:55 +0100 Subject: internal: store matched windowrules and emit event new event for plugins, windowUpdateRules --- src/desktop/Window.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/desktop/Window.cpp') diff --git a/src/desktop/Window.cpp b/src/desktop/Window.cpp index 333f43c3..04797f8b 100644 --- a/src/desktop/Window.cpp +++ b/src/desktop/Window.cpp @@ -748,11 +748,13 @@ void CWindow::updateDynamicRules() { m_sAdditionalConfigData.nearestNeighbor = false; m_eIdleInhibitMode = IDLEINHIBIT_NONE; - const auto WINDOWRULES = g_pConfigManager->getMatchingRules(m_pSelf.lock()); - for (auto& r : WINDOWRULES) { + m_vMatchedRules = g_pConfigManager->getMatchingRules(m_pSelf.lock()); + for (auto& r : m_vMatchedRules) { applyDynamicRule(r); } + EMIT_HOOK_EVENT("windowUpdateRules", m_pSelf.lock()); + g_pLayoutManager->getCurrentLayout()->recalculateMonitor(m_iMonitorID); } -- cgit v1.2.3