hyprland-plugins icon indicating copy to clipboard operation
hyprland-plugins copied to clipboard

Hyprbars: bar_precedence_over_border = true leaves gaps

Open TheDrone7 opened this issue 1 year ago • 5 comments

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

TheDrone7 avatar Nov 25 '24 21:11 TheDrone7

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.

kainzilla avatar Jan 04 '25 02:01 kainzilla

* 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.

MathisP75 avatar Jan 13 '25 15:01 MathisP75

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

kainzilla avatar Jan 13 '25 17:01 kainzilla

I am at 1.25 scale

MathisP75 avatar Jan 13 '25 17:01 MathisP75

Bump. This is the case for me too, and blur isn't the issue here. Hope this gets fixed soon

RambilE avatar Feb 28 '25 14:02 RambilE