mirror of
https://github.com/swaywm/sway.git
synced 2026-06-16 14:34:04 -04:00
Merge e0ff93b414 into 9c663b1fa1
This commit is contained in:
commit
6fdb088a1c
3 changed files with 21 additions and 23 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue