mirror of
https://github.com/swaywm/sway.git
synced 2024-12-30 17:06:40 +01:00
swaybar: fix tray_padding vs min-height re: scale
Co-authored-by: xdavidwu <xdavidwuph@gmail.com>
(cherry picked from commit bb60381c75
)
This commit is contained in:
parent
a235794a96
commit
ec9e4630e0
1 changed files with 2 additions and 2 deletions
|
@ -116,8 +116,8 @@ uint32_t render_tray(cairo_t *cairo, struct swaybar_output *output, double *x) {
|
||||||
}
|
}
|
||||||
} // else display on all
|
} // else display on all
|
||||||
|
|
||||||
if ((int) output->height*output->scale <= 2*config->tray_padding) {
|
if ((int)(output->height * output->scale) <= 2 * config->tray_padding) {
|
||||||
return 2*config->tray_padding + 1;
|
return (2 * config->tray_padding + 1) / output->scale;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t max_height = 0;
|
uint32_t max_height = 0;
|
||||||
|
|
Loading…
Reference in a new issue