aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-08-09 17:52:31 -0400
committerGitHub <noreply@github.com>2017-08-09 17:52:31 -0400
commitb109aecff98bfed9a7ae834947ac93cb14bfc8dc (patch)
tree09d768bc1d337105b8a50d5886aa9f19d497c3d0 /include/wlr
parent3ce1341e3c0276ef20df5c7b89cc9ce260d05b9e (diff)
parent4dfc6460f3205152f8f039838b15d2a774a50379 (diff)
Merge pull request #52 from acrisci/feature/surface-frame-cb
Implement surface frame callback
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_surface.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_surface.h b/include/wlr/types/wlr_surface.h
index 88a9a4d8..2bfd5d36 100644
--- a/include/wlr/types/wlr_surface.h
+++ b/include/wlr/types/wlr_surface.h
@@ -3,6 +3,11 @@
#include <wayland-server.h>
+struct wlr_frame_callback {
+ struct wl_resource *resource;
+ struct wl_list link;
+};
+
struct wlr_surface {
struct wl_resource *pending_buffer;
bool pending_attached;
@@ -16,6 +21,8 @@ struct wlr_surface {
struct wl_signal destroy;
struct wl_signal commit;
} signals;
+
+ struct wl_list frame_callback_list; // wl_surface.frame
};
struct wlr_renderer;