added a nointerventions rule

This commit is contained in:
vaxerski 2022-01-18 17:11:03 +01:00
parent d84d56a7ee
commit 6f43bc7769
2 changed files with 6 additions and 0 deletions

View file

@ -272,6 +272,7 @@ void handleWindowRule(const std::string& command, const std::string& value) {
&& RULE != "tile" && RULE != "tile"
&& RULE.find("move") != 0 && RULE.find("move") != 0
&& RULE.find("size") != 0 && RULE.find("size") != 0
&& RULE.find("nointerventions") != 0
&& RULE.find("monitor") != 0) { && RULE.find("monitor") != 0) {
Debug::log(ERR, "Invalid rule found: " + RULE); Debug::log(ERR, "Invalid rule found: " + RULE);
ConfigManager::parseError = "Invalid rule found: " + RULE; ConfigManager::parseError = "Invalid rule found: " + RULE;

View file

@ -1985,6 +1985,11 @@ bool CWindowManager::shouldBeFloatedOnInit(int64_t window) {
return false; return false;
else if (rule.szRule == "float") else if (rule.szRule == "float")
return true; return true;
else if (rule.szRule == "nointerventions") {
PWINDOW->setNoInterventions(true);
PWINDOW->setImmovable(true);
return true;
}
} }
return false; return false;