aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-05-27 08:58:35 -0400
committerGitHub <noreply@github.com>2018-05-27 08:58:35 -0400
commit067eb83f11cb25138b112a68e2eeee263cf0128e (patch)
tree5e1ebce0a9a71954679ade0676e3b7db01b018f2 /include
parente4c54b04ce90d2d051ba7343ec5b9dce1bbb6755 (diff)
parentcc10c7af6528f6006e4fccbbdc2156b957cdd5c9 (diff)
downloadsway-067eb83f11cb25138b112a68e2eeee263cf0128e.tar.xz
Merge pull request #2042 from emersion/swaylock-render-loop
swaylock: implement a proper render loop
Diffstat (limited to 'include')
-rw-r--r--include/swaylock/swaylock.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/swaylock/swaylock.h b/include/swaylock/swaylock.h
index dae823b8..2931fd61 100644
--- a/include/swaylock/swaylock.h
+++ b/include/swaylock/swaylock.h
@@ -56,6 +56,7 @@ struct swaylock_surface {
struct zwlr_layer_surface_v1 *layer_surface;
struct pool_buffer buffers[2];
struct pool_buffer *current_buffer;
+ bool frame_pending, dirty;
uint32_t width, height;
int32_t scale;
char *output_name;
@@ -74,5 +75,7 @@ void swaylock_handle_key(struct swaylock_state *state,
xkb_keysym_t keysym, uint32_t codepoint);
void render_frame(struct swaylock_surface *surface);
void render_frames(struct swaylock_state *state);
+void damage_surface(struct swaylock_surface *surface);
+void damage_state(struct swaylock_state *state);
#endif