From a654ac1bd626e13917568acaebb6ecdb04c77596 Mon Sep 17 00:00:00 2001 From: emersion Date: Tue, 23 Oct 2018 23:38:57 +0200 Subject: Implement the presentation-time protocol --- include/sway/output.h | 1 + include/sway/server.h | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/sway/output.h b/include/sway/output.h index 19a61175..369e62ce 100644 --- a/include/sway/output.h +++ b/include/sway/output.h @@ -40,6 +40,7 @@ struct sway_output { struct wl_listener mode; struct wl_listener transform; struct wl_listener scale; + struct wl_listener present; struct wl_listener damage_destroy; struct wl_listener damage_frame; diff --git a/include/sway/server.h b/include/sway/server.h index 3e1cbb33..5fced224 100644 --- a/include/sway/server.h +++ b/include/sway/server.h @@ -8,12 +8,12 @@ #include #include #include +#include #include #include #include -// TODO WLR: make Xwayland optional -#include "list.h" #include "config.h" +#include "list.h" #ifdef HAVE_XWAYLAND #include "sway/xwayland.h" #endif @@ -58,6 +58,8 @@ struct sway_server { struct wl_listener xdg_decoration; struct wl_list xdg_decorations; // sway_xdg_decoration::link + struct wlr_presentation *presentation; + size_t txn_timeout_ms; list_t *transactions; list_t *dirty_nodes; -- cgit v1.2.3-54-g00ecf