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

Only apply corner_radius to container if there is one #378

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

itsCryne
Copy link

@itsCryne itsCryne commented Feb 4, 2025

I noticed that when I use a for_window command in my sway config where I set the corner_radius, this applies to every window as soon as a window matching the for_window-criteria was opened.

This seems to happen due to a missing check at

config->corner_radius = value;

which means that a corner_radius will always be set in the "global" configuration.

This PR adapts the check from

if (con == NULL) {
config->blur_enabled = result;
} else {
con->blur_enabled = result;
}

@ErikReider
Copy link
Collaborator

We'll have to wait with this until #367 is merged :)

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