aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-09-30 11:44:27 +0200
committerGitHub <noreply@github.com>2018-09-30 11:44:27 +0200
commit98b524abd767149337cb6e1bab5905d79f25254b (patch)
tree1f1d49abca1369c7e165991f69d8451f01af5c2f /include
parent4eb3fe4830fe3931c6a608c5ec16f627f2847972 (diff)
parent02dfeea54c4eac2a96c0d8d614d5c16d96358ad0 (diff)
Merge pull request #2733 from ianyfan/swaybar
swaybar: synchronize rendering to output frames
Diffstat (limited to 'include')
-rw-r--r--include/swaybar/bar.h2
-rw-r--r--include/swaybar/render.h4
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 {
enum wl_output_subpixel subpixel;
struct pool_buffer buffers[2];
struct pool_buffer *current_buffer;
+ bool dirty;
+ bool frame_scheduled;
};
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 @@
#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