diff options
| author | Vaxry <vaxry@vaxry.net> | 2024-05-02 02:17:55 +0100 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2024-05-02 02:18:01 +0100 |
| commit | 56de72f357222beca94e3d4f8152e2523a22c0b3 (patch) | |
| tree | 8de75f4a2e2148bc67312e1d00ce6cd5b13c34d6 /src/desktop/Window.cpp | |
| parent | 02bfb2857ee0562bc95cd1f604570967250aa129 (diff) | |
internal: store matched windowrules and emit event
new event for plugins, windowUpdateRules
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); } |
