Skip to content

Commit

Permalink
fix protocol version of wl_output
Browse files Browse the repository at this point in the history
wl_output now offers names and descriptions, but we use xdg_output for
that. Fix the protocol version at 2 for the time being (should solve #28)
pending further evaluation of whether xdg_output is needed at all

And bump to 0.0.6, because I don't like the idea a release not working
with the latest sway.
  • Loading branch information
r-c-f committed Jan 28, 2022
1 parent 246c863 commit be508a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
project('waynergy',
'c',
version: '0.0.4'
version: '0.0.6'
)

src_c = files(
Expand Down
2 changes: 1 addition & 1 deletion src/wayland.c
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ static void handle_global(void *data, struct wl_registry *registry, uint32_t nam
}
}
} else if (strcmp(interface, wl_output_interface.name) == 0) {
wl_output = wl_registry_bind(registry, name, &wl_output_interface, version);
wl_output = wl_registry_bind(registry, name, &wl_output_interface, 2);
wl_output_add_listener(wl_output, &output_listener, ctx);
if (ctx->output_manager) {
xdg_output = zxdg_output_manager_v1_get_xdg_output(ctx->output_manager, wl_output);
Expand Down

0 comments on commit be508a9

Please sign in to comment.