swaybar: synchronize rendering to output frames

This commit is contained in:
Ian Fan 2018-09-28 16:17:15 +01:00
parent 4eb3fe4830
commit 02dfeea54c
4 changed files with 48 additions and 23 deletions

View file

@ -83,6 +83,8 @@ struct swaybar_output {
enum wl_output_subpixel subpixel;
struct pool_buffer buffers[2];
struct pool_buffer *current_buffer;
bool dirty;
bool frame_scheduled;
};
struct swaybar_workspace {

View file

@ -1,10 +1,8 @@
#ifndef _SWAYBAR_RENDER_H
#define _SWAYBAR_RENDER_H
struct swaybar;
struct swaybar_output;
struct swaybar_config;
void render_frame(struct swaybar *bar, struct swaybar_output *output);
void render_frame(struct swaybar_output *output);
#endif