mirror of
https://github.com/swaywm/sway.git
synced 2025-11-02 09:01:40 -05:00
swaybar: synchronize rendering to output frames
This commit is contained in:
parent
4eb3fe4830
commit
02dfeea54c
4 changed files with 48 additions and 23 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue