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

Consider borders when creating the mask image #950

Merged
merged 1 commit into from
Nov 30, 2022

Conversation

summaryInfo
Copy link
Contributor

With rounded corners, X11 native border and blur enabled,
left and bottom 2*border_width pixels were not blurred,
since mask did not include border_width, only content width and height.

Create mask image with dimensions that include border width.

I hope the fix is correct, since I am not that familiar with the codebase.
At least for me it works fine for all of the new backends.

An image, demonstrating the issue with overly large borders and corner radius:
image

With rounded corners, X11 native border and blur enabled, left and
bottom 2*border_width pixels were not blurred, since mask did not
include border_width, only content width and height.

Create mask image with dimensions that include border width.

Signed-off-by: Evgeniy Baskov <j-basevgser@yandex.ru>
@codecov
Copy link

codecov bot commented Nov 30, 2022

Codecov Report

Merging #950 (de3e1a8) into next (19a24ad) will not change coverage.
The diff coverage is 0.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             next     #950   +/-   ##
=======================================
  Coverage   37.59%   37.59%           
=======================================
  Files          48       48           
  Lines       10667    10667           
=======================================
  Hits         4010     4010           
  Misses       6657     6657           
Impacted Files Coverage Δ
src/win.c 67.44% <0.00%> (ø)

@yshui
Copy link
Owner

yshui commented Nov 30, 2022

Good catch 😅

Thank you!

@yshui yshui merged commit 81ab751 into yshui:next Nov 30, 2022
bmwiedemann pushed a commit to bmwiedemann/openSUSE that referenced this pull request Dec 22, 2022
https://build.opensuse.org/request/show/1044090
by user mia + dimstar_suse
- Update to version 10.2
Fixes:
  * Window border not being considered when calculating its mask
    gh#yshui/picom#950
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