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

@ -69,14 +69,13 @@ struct swaybar_output {
bool focused;
uint32_t width, height;
int32_t scale;
enum wl_output_subpixel subpixel;
struct pool_buffer buffers[2];
struct pool_buffer *current_buffer;
bool dirty;
bool frame_scheduled;
uint32_t output_height, output_width, output_x, output_y;
uint32_t output_height, output_width, output_x, output_y, output_scale;
enum wl_output_subpixel output_subpixel;
};
struct swaybar_workspace {