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

borders-plus-plus: Inconsistent offset when using negative border size #280

Open
bodby opened this issue Jan 19, 2025 · 3 comments
Open

Comments

@bodby
Copy link

bodby commented Jan 19, 2025

When general:border_size = -2 and I have two borders configured as follows:

borders-plus-plus {
  add_borders=2
  border_size_1=1
  border_size_2=1
  col.border_1=rgba(efefff25)
  col.border_2=rgba(00000060)
  natural_rounding=true
}

The border on the left doesn't line up with the window. The right side looks fine, but left should go an extra pixel to the left.

I am on a 4K display and haven't noticed this on 2K.

Image
Image

@bodby bodby changed the title borders-plus-plus: Offset when using negative border size borders-plus-plus: Inconsistent offset when using negative border size Jan 19, 2025
@bodby
Copy link
Author

bodby commented Jan 19, 2025

This may be a problem with hyprscroller or with gaps_out or gaps_in. When I have another window to the left, the problem disappears. And when there are no windows on either side, the weird alignment happens on both sides.

Doesn't seem like hyprscroller's fault though.

@bodby bodby closed this as completed Jan 19, 2025
bodby added a commit to bodby/noots that referenced this issue Jan 19, 2025
@bodby
Copy link
Author

bodby commented Jan 19, 2025

... mostly. It still appears at the bottom of windows unless I have a window underneath that too.

It also appears if I resize windows precisely enough, maybe because the border boundaries get "truncated" so they are sometimes one pixel inset.

Plus I have fractional scaling which might be the main issue.

@bodby bodby reopened this Jan 19, 2025
@bodby
Copy link
Author

bodby commented Jan 20, 2025

tl;dr borders don't align with windows perfectly all the time with a negative border size when using fractional scaling.

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

No branches or pull requests

1 participant