Skip to content

Commit

Permalink
sway/server: bind to presentation-time-v2
Browse files Browse the repository at this point in the history
  • Loading branch information
llyyr authored and Nefsen402 committed Oct 27, 2024
1 parent 015e357 commit 839434a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sway/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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 =
Expand Down

0 comments on commit 839434a

Please sign in to comment.