mirror of
https://github.com/swaywm/sway.git
synced 2026-04-25 06:46:24 -04:00
swaybar: tidy swaybar_output struct
- prefix remaining output properties with output_ (scale, subpixel) - plumb updates to all output properties (x, y, width, height)
This commit is contained in:
parent
a47f8ef478
commit
d5db744f6c
5 changed files with 20 additions and 15 deletions
|
|
@ -454,7 +454,7 @@ static void reload_sni(struct swaybar_sni *sni, char *icon_theme,
|
|||
|
||||
uint32_t render_sni(cairo_t *cairo, struct swaybar_output *output, double *x,
|
||||
struct swaybar_sni *sni) {
|
||||
uint32_t height = output->height * output->scale;
|
||||
uint32_t height = output->height * output->output_scale;
|
||||
int padding = output->bar->config->tray_padding;
|
||||
int target_size = height - 2*padding;
|
||||
if (target_size != sni->target_size && sni_ready(sni)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue