aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2023-07-23 16:03:59 +0200
committervaxerski <[email protected]>2023-07-23 16:03:59 +0200
commitaf395a8f5514a978151e237dbf284c49c9422a82 (patch)
tree9d7115292a1e1e24fc0704df467d784c89f0e9f8
parent90f69782ee64d35c4b0f38985c00c40595224088 (diff)
downloadHyprland-af395a8f5514a978151e237dbf284c49c9422a82.tar.gz
Hyprland-af395a8f5514a978151e237dbf284c49c9422a82.zip
windowrules: fix opacity override
-rw-r--r--src/Window.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Window.cpp b/src/Window.cpp
index b6a357fa..f1acc791 100644
--- a/src/Window.cpp
+++ b/src/Window.cpp
@@ -493,10 +493,10 @@ void CWindow::applyDynamicRule(const SWindowRule& r) {
continue;
if (r == "override") {
- if (opacityIDX == 0) {
+ if (opacityIDX == 1) {
m_sSpecialRenderData.alphaOverride = true;
m_sSpecialRenderData.alphaInactiveOverride = true;
- } else
+ } else if (opacityIDX == 2)
m_sSpecialRenderData.alphaInactiveOverride = true;
} else {
if (opacityIDX == 0) {