-
Notifications
You must be signed in to change notification settings - Fork 42
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
fix shadow for rounded window #34
base: next-rebase
Are you sure you want to change the base?
Conversation
I’m not sure why (perhaps tabbing / alignment) but your commit wishes to replace lines 191-254 instead of just adding the lines at ~200, don’t worry about fixing it I’ll just add it manually. |
Guess it's because I changed the painting process, the shadow painting part is moved before the blur part. (to deal with the sharp corner generated by blurring) |
I don't get it. This fix is for filling the gap between rounded window corner and squared shadow, since the original version generates the shadow for rectangle shape, which does not match the rounded window. I don't think it has something to do with shadow under the window, could you please explain the problem in details? btw. Nice look. I didn't know the color of the shadow can be changed like that. |
I'm still a bit weary of making changes to this fork since it's used by so many and who knows what kind of other issues this might cause, maybe it's better I just create a feature branch and people can test it out? |
This comment has been minimized.
This comment has been minimized.
@Tanishq-Banyal it took a bit of trial and error getting the positioning right. here's the relevant section of my picom.conf: shadow = true;
shadow-radius = 17;
shadow-offset-x = -17;
shadow-offset-y = -12;
shadow-opacity = 0.25; |
@scrouthtv see #3. |
I agree 👍. I would like this to be merged into the new branch with the latest picom upstream commits as well. And this is the only thing stopping me from using shadows. |
Does this fork actually make the shadows rounded? If so, am I missing something? I installed it and nothing seemed to have changed. |
It does make the shadows rounded but you need to turn on the rounded window option in your config |
Was there a specific option for that other than corner-radius? I re-built and installed this fork and my shadows are still rectangular. Here is my config
|
Unsure, you've set all the potions I had in my config when I used picom. Are your window corners rounded or are they rectangular? |
Yeah. Window corners are rounded. The shadows are not. I really don't know why it wouldn't work. Could you possibly plug my config in and see if you still have rounded corners? EDIT: when I change my backend to xrender the shadows become rounded. However, the window corners are not rounded on every window. Additionally, it cuts off the border around the rounded corners so it kind of looks bad. Not really sure if this is normal or not. |
|
Sorry for the mess, it took me a whole branch to figure out how to properly squash and merge my commits.
I've combined all my changes into this pull request, hope it helps.