summaryrefslogtreecommitdiff
path: root/src/desktop/Window.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-05-02 02:17:55 +0100
committerVaxry <vaxry@vaxry.net>2024-05-02 02:18:01 +0100
commit56de72f357222beca94e3d4f8152e2523a22c0b3 (patch)
tree8de75f4a2e2148bc67312e1d00ce6cd5b13c34d6 /src/desktop/Window.cpp
parent02bfb2857ee0562bc95cd1f604570967250aa129 (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.cpp6
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);
}