swaybar: tray_padding is scaled

update docs
This commit is contained in:
Nathan Schulte 2022-01-07 16:45:38 -06:00
parent f92329701b
commit e0ff93b414
3 changed files with 21 additions and 23 deletions

View file

@ -116,8 +116,8 @@ uint32_t render_tray(cairo_t *cairo, struct swaybar_output *output, double *x) {
}
} // else display on all
if ((int)(output->height * output->scale) <= 2 * config->tray_padding) {
return (2 * config->tray_padding + 1) / output->scale;
if (output->height <= 2 * (uint32_t)config->tray_padding) {
return 2 * config->tray_padding + 1;
}
uint32_t max_height = 0;