mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-14 03:46:02 +01:00
dont account for scale in border thick
This commit is contained in:
parent
e5cef8fc96
commit
0573d5987f
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ void renderSurface(struct wlr_surface* surface, int x, int y, void* data) {
|
||||||
static auto *const PBORDERTHICK = &g_pConfigManager->getConfigValuePtr("general:border_size")->intValue;
|
static auto *const PBORDERTHICK = &g_pConfigManager->getConfigValuePtr("general:border_size")->intValue;
|
||||||
|
|
||||||
float rounding = RDATA->dontRound ? 0 : RDATA->rounding == -1 ? *PROUNDING : RDATA->rounding;
|
float rounding = RDATA->dontRound ? 0 : RDATA->rounding == -1 ? *PROUNDING : RDATA->rounding;
|
||||||
rounding += *PBORDERTHICK * RDATA->output->scale;
|
rounding += *PBORDERTHICK;
|
||||||
|
|
||||||
if (RDATA->surface && surface == RDATA->surface) {
|
if (RDATA->surface && surface == RDATA->surface) {
|
||||||
if (wlr_surface_is_xwayland_surface(surface) && !wlr_xwayland_surface_from_wlr_surface(surface)->has_alpha && RDATA->fadeAlpha * RDATA->alpha == 255.f) {
|
if (wlr_surface_is_xwayland_surface(surface) && !wlr_xwayland_surface_from_wlr_surface(surface)->has_alpha && RDATA->fadeAlpha * RDATA->alpha == 255.f) {
|
||||||
|
|
Loading…
Reference in a new issue