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:
Nathan Schulte 2021-09-14 05:12:08 -05:00
parent a47f8ef478
commit d5db744f6c
5 changed files with 20 additions and 15 deletions

View file

@ -78,7 +78,7 @@ void update_cursor(struct swaybar_seat *seat) {
cursor_size = size;
}
}
int scale = pointer->current ? pointer->current->scale : 1;
int scale = pointer->current ? pointer->current->output_scale : 1;
pointer->cursor_theme = wl_cursor_theme_load(
cursor_theme, cursor_size * scale, seat->bar->shm);
struct wl_cursor *cursor;