mirror of
https://github.com/hyprwm/Hypr.git
synced 2024-11-22 13:35:57 +01:00
added a nointerventions rule
This commit is contained in:
parent
d84d56a7ee
commit
6f43bc7769
2 changed files with 6 additions and 0 deletions
|
@ -272,6 +272,7 @@ void handleWindowRule(const std::string& command, const std::string& value) {
|
|||
&& RULE != "tile"
|
||||
&& RULE.find("move") != 0
|
||||
&& RULE.find("size") != 0
|
||||
&& RULE.find("nointerventions") != 0
|
||||
&& RULE.find("monitor") != 0) {
|
||||
Debug::log(ERR, "Invalid rule found: " + RULE);
|
||||
ConfigManager::parseError = "Invalid rule found: " + RULE;
|
||||
|
|
|
@ -1985,6 +1985,11 @@ bool CWindowManager::shouldBeFloatedOnInit(int64_t window) {
|
|||
return false;
|
||||
else if (rule.szRule == "float")
|
||||
return true;
|
||||
else if (rule.szRule == "nointerventions") {
|
||||
PWINDOW->setNoInterventions(true);
|
||||
PWINDOW->setImmovable(true);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue