aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2024-10-15 23:07:46 +0530
committerFurkan Sahin <furkan-dev@proton.me>2024-10-15 23:07:46 +0530
commit52ca06b9d300d10a25a6085f17b6ecd71b8efa6a (patch)
tree6d34be6cc5e2ea05b48343935de9cfec3285d375
parentb7708b222f9178d445c11ab91094678c46c7e451 (diff)
sway/server: bind to presentation-time-v2
Depends on: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4858
-rw-r--r--sway/server.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/server.c b/sway/server.c
index 8b122446..e091d946 100644
--- a/sway/server.c
+++ b/sway/server.c
@@ -70,6 +70,7 @@
#define SWAY_XDG_SHELL_VERSION 5
#define SWAY_LAYER_SHELL_VERSION 4
#define SWAY_FOREIGN_TOPLEVEL_LIST_VERSION 1
+#define SWAY_PRESENTATION_VERSION 2
bool allow_unsupported_gpu = false;
@@ -327,7 +328,7 @@ bool server_init(struct sway_server *server) {
wl_signal_add(&server->pointer_constraints->events.new_constraint,
&server->pointer_constraint);
- wlr_presentation_create(server->wl_display, server->backend);
+ wlr_presentation_create(server->wl_display, server->backend, SWAY_PRESENTATION_VERSION);
wlr_alpha_modifier_v1_create(server->wl_display);
server->output_manager_v1 =