mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-29 02:43:48 -07:00
added opaque windowrule
This commit is contained in:
@@ -688,6 +688,7 @@ void CConfigManager::handleWindowRule(const std::string& command, const std::str
|
|||||||
&& RULE != "nofocus"
|
&& RULE != "nofocus"
|
||||||
&& RULE != "noblur"
|
&& RULE != "noblur"
|
||||||
&& RULE != "center"
|
&& RULE != "center"
|
||||||
|
&& RULE != "opaque"
|
||||||
&& RULE != "fullscreen"
|
&& RULE != "fullscreen"
|
||||||
&& RULE.find("animation") != 0
|
&& RULE.find("animation") != 0
|
||||||
&& RULE.find("rounding") != 0
|
&& RULE.find("rounding") != 0
|
||||||
|
@@ -153,6 +153,8 @@ void Events::listener_mapWindow(void* owner, void* data) {
|
|||||||
PWINDOW->m_sAdditionalConfigData.forceNoBlur = true;
|
PWINDOW->m_sAdditionalConfigData.forceNoBlur = true;
|
||||||
} else if (r.szRule == "fullscreen") {
|
} else if (r.szRule == "fullscreen") {
|
||||||
requestsFullscreen = true;
|
requestsFullscreen = true;
|
||||||
|
} else if (r.szRule == "opaque") {
|
||||||
|
PWINDOW->m_sAdditionalConfigData.forceOpaque = true;
|
||||||
} else if (r.szRule.find("rounding") == 0) {
|
} else if (r.szRule.find("rounding") == 0) {
|
||||||
try {
|
try {
|
||||||
PWINDOW->m_sAdditionalConfigData.rounding = std::stoi(r.szRule.substr(r.szRule.find_first_of(' ') + 1));
|
PWINDOW->m_sAdditionalConfigData.rounding = std::stoi(r.szRule.substr(r.szRule.find_first_of(' ') + 1));
|
||||||
|
Reference in New Issue
Block a user