Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't override fullscreen opacity if only two opacities are provided #5512

Merged
merged 1 commit into from
Apr 9, 2024

Conversation

SoSeDiK
Copy link
Contributor

@SoSeDiK SoSeDiK commented Apr 9, 2024

Describe your PR, what does it fix/add?

Specifying single value in opacity window rule correctly sets it for all three states (active, inactive, fullscreen), but providing two values unintentionally sets fullscreen one too. This makes fullscreen opacity to be unset if two are specified (wiki's already written as if this is the case).

Is there anything you want to mention? (unchecked code, possible bugs, found problems, breaking compatibility, etc.)

Removed ...Override = falses since they are already false by default.
Got confused by the fact the alpha (active) didn't do this, unlike inactive/fullscreen, but this makes it impossible to reset the override lock.
Added m_sSpecialRenderData.alphaOverride = false; instead to allow resetting the active alpha's lock.

Is it ready for merging, or does it need work?

Ready

@vaxerski vaxerski merged commit 1343aa8 into hyprwm:main Apr 9, 2024
9 checks passed
lisuke pushed a commit to lisuke/Hyprland that referenced this pull request Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants