diff options
author | 2018-09-30 11:44:27 +0200 | |
---|---|---|
committer | 2018-09-30 11:44:27 +0200 | |
commit | 98b524abd767149337cb6e1bab5905d79f25254b (patch) | |
tree | 1f1d49abca1369c7e165991f69d8451f01af5c2f /include | |
parent | Merge pull request #2732 from RyanDwyer/fix-zero-outputs (diff) | |
parent | swaybar: synchronize rendering to output frames (diff) | |
download | sway-98b524abd767149337cb6e1bab5905d79f25254b.tar.gz sway-98b524abd767149337cb6e1bab5905d79f25254b.tar.zst sway-98b524abd767149337cb6e1bab5905d79f25254b.zip |
Merge pull request #2733 from ianyfan/swaybar
swaybar: synchronize rendering to output frames
Diffstat (limited to 'include')
-rw-r--r-- | include/swaybar/bar.h | 2 | ||||
-rw-r--r-- | include/swaybar/render.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/swaybar/bar.h b/include/swaybar/bar.h index 20992014..de234111 100644 --- a/include/swaybar/bar.h +++ b/include/swaybar/bar.h | |||
@@ -83,6 +83,8 @@ struct swaybar_output { | |||
83 | enum wl_output_subpixel subpixel; | 83 | enum wl_output_subpixel subpixel; |
84 | struct pool_buffer buffers[2]; | 84 | struct pool_buffer buffers[2]; |
85 | struct pool_buffer *current_buffer; | 85 | struct pool_buffer *current_buffer; |
86 | bool dirty; | ||
87 | bool frame_scheduled; | ||
86 | }; | 88 | }; |
87 | 89 | ||
88 | struct swaybar_workspace { | 90 | struct swaybar_workspace { |
diff --git a/include/swaybar/render.h b/include/swaybar/render.h index 071e2298..ebdc69e4 100644 --- a/include/swaybar/render.h +++ b/include/swaybar/render.h | |||
@@ -1,10 +1,8 @@ | |||
1 | #ifndef _SWAYBAR_RENDER_H | 1 | #ifndef _SWAYBAR_RENDER_H |
2 | #define _SWAYBAR_RENDER_H | 2 | #define _SWAYBAR_RENDER_H |
3 | 3 | ||
4 | struct swaybar; | ||
5 | struct swaybar_output; | 4 | struct swaybar_output; |
6 | struct swaybar_config; | ||
7 | 5 | ||
8 | void render_frame(struct swaybar *bar, struct swaybar_output *output); | 6 | void render_frame(struct swaybar_output *output); |
9 | 7 | ||
10 | #endif | 8 | #endif |