mirror of
https://github.com/swaywm/sway.git
synced 2026-04-20 06:47:03 -04:00
swaybar: tray_padding is scaled
update docs
This commit is contained in:
parent
f92329701b
commit
e0ff93b414
3 changed files with 21 additions and 23 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue