diff options
| author | vaxerski <vaxry@vaxry.net> | 2023-08-09 22:03:24 +0200 |
|---|---|---|
| committer | vaxerski <vaxry@vaxry.net> | 2023-08-09 22:03:31 +0200 |
| commit | cbb899740cd80dfd29afeb5426c60e6b41a23669 (patch) | |
| tree | c7053a32750448e7d84a7d13a1b874d423c4ac21 /src/Window.cpp | |
| parent | fe9453c6432ccdb3935ff6e9aa32f9d985aff577 (diff) | |
rules: add layer and window xray rules
Diffstat (limited to 'src/Window.cpp')
| -rw-r--r-- | src/Window.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Window.cpp b/src/Window.cpp index 63c5a79e..1bd30f22 100644 --- a/src/Window.cpp +++ b/src/Window.cpp @@ -548,6 +548,12 @@ void CWindow::applyDynamicRule(const SWindowRule& r) { m_sAdditionalConfigData.dimAround = true; } else if (r.szRule == "keepaspectratio") { m_sAdditionalConfigData.keepAspectRatio = true; + } else if (r.szRule.find("xray") == 0) { + CVarList vars(r.szRule, 0, ' '); + + try { + m_sAdditionalConfigData.xray = configStringToInt(vars[1]); + } catch (...) {} } } @@ -569,6 +575,7 @@ void CWindow::updateDynamicRules() { m_sAdditionalConfigData.forceRGBX = false; m_sAdditionalConfigData.borderSize = -1; m_sAdditionalConfigData.keepAspectRatio = false; + m_sAdditionalConfigData.xray = -1; const auto WINDOWRULES = g_pConfigManager->getMatchingRules(this); for (auto& r : WINDOWRULES) { |
