aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/sway/desktop/transaction.h7
-rw-r--r--include/sway/output.h1
-rw-r--r--include/sway/server.h6
3 files changed, 5 insertions, 9 deletions
diff --git a/include/sway/desktop/transaction.h b/include/sway/desktop/transaction.h
index f38f033c..66e8c9a2 100644
--- a/include/sway/desktop/transaction.h
+++ b/include/sway/desktop/transaction.h
@@ -29,13 +29,6 @@ struct sway_view;
void transaction_commit_dirty(void);
/**
- * Same as above, but runs the specific callback when the transaction is
- * applied.
- */
-void transaction_commit_dirty_with_callback(
- void (*callback)(void *data), void *data);
-
-/**
* Notify the transaction system that a view is ready for the new layout.
*
* When all views in the transaction are ready, the layout will be applied.
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 <wlr/types/wlr_compositor.h>
#include <wlr/types/wlr_data_device.h>
#include <wlr/types/wlr_layer_shell_v1.h>
+#include <wlr/types/wlr_presentation_time.h>
#include <wlr/types/wlr_server_decoration.h>
#include <wlr/types/wlr_xdg_shell_v6.h>
#include <wlr/types/wlr_xdg_shell.h>
-// 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;