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

Hyprbars: bar_precedence_over_border = true leaves gaps #247

Open
TheDrone7 opened this issue Nov 25, 2024 · 4 comments
Open

Hyprbars: bar_precedence_over_border = true leaves gaps #247

TheDrone7 opened this issue Nov 25, 2024 · 4 comments

Comments

@TheDrone7
Copy link

TheDrone7 commented Nov 25, 2024

Details

When using the bar_precedence_over_border = true in hyprbars.

With hyprland config containing rounding and a border

general {
    border-size = 3
    # ...
}

decoration {
    rounding = 12
    # ...
}

There are gaps between the bar and the actual windows (image attached for clarification)

image

@kainzilla
Copy link

I noticed this issue today, and I believe this issue actually occurs in the following situation:

  • Blur is enabled in Hyprland, and the window in question is affected by blur
  • Rounded corners are enabled, and the window in question has rounded corners

The setting bar_precedence_over_border I believe doesn't actually impact the issue but does conceal this issue if:

  • bar_precedence_over_border is set to false
  • The border is 1 or more
  • The border is fully opaque (if the border is partially transparent, this gap can still be seen)

If any of the above settings aren't in this alignment while blur is enabled with rounding corners, then the issue becomes visible. A very small (1px? 2px?) increase to rounded corner area covered by the titlebar should conceal this area if the titlebar is "above" the window. If there's a way to disable the rounding on just the top corners of windows with Hyprbars attached, that could also do the trick, but I don't know if rounded corners can be set off for specific corners internally to Hyprland.

Side note: If corner rounding could be turned off for just the top window corners, an option for an unrounded boundary between the Hyprbar and the window it's attached to could be a nice aesthetic option.

@MathisP75
Copy link

* Blur is enabled in Hyprland, and the window in question is affected by blur

My configuration has blur disabled and I still have the issue.

@kainzilla
Copy link

My configuration has blur disabled and I still have the issue.

Interesting, it might be happening under other circumstances as well - what scale are you using? My observations with blur were made with scaling set to 2, and I wonder if fractional scaling without blur might see the issue

@MathisP75
Copy link

I am at 1.25 scale

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

3 participants