mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-30 02:05:58 +01:00
added opaque windowrule
This commit is contained in:
parent
a6cd552980
commit
a71f4114b0
2 changed files with 3 additions and 0 deletions
|
@ -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));
|
||||||
|
|
Loading…
Reference in a new issue