diff options
Diffstat (limited to 'src/desktop/Window.cpp')
| -rw-r--r-- | src/desktop/Window.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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); } |
