added opaque windowrule

This commit is contained in:
vaxerski 2022-08-02 00:08:31 +02:00
parent a6cd552980
commit a71f4114b0
2 changed files with 3 additions and 0 deletions

View file

@ -688,6 +688,7 @@ void CConfigManager::handleWindowRule(const std::string& command, const std::str
&& RULE != "nofocus"
&& RULE != "noblur"
&& RULE != "center"
&& RULE != "opaque"
&& RULE != "fullscreen"
&& RULE.find("animation") != 0
&& RULE.find("rounding") != 0

View file

@ -153,6 +153,8 @@ void Events::listener_mapWindow(void* owner, void* data) {
PWINDOW->m_sAdditionalConfigData.forceNoBlur = true;
} else if (r.szRule == "fullscreen") {
requestsFullscreen = true;
} else if (r.szRule == "opaque") {
PWINDOW->m_sAdditionalConfigData.forceOpaque = true;
} else if (r.szRule.find("rounding") == 0) {
try {
PWINDOW->m_sAdditionalConfigData.rounding = std::stoi(r.szRule.substr(r.szRule.find_first_of(' ') + 1));