This commit is contained in:
Nathan Schulte 2026-04-11 17:35:14 +03:00 committed by GitHub
commit d07deb708d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 21 additions and 23 deletions

View file

@ -124,8 +124,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;