This commit is contained in:
Simon Ser 2020-07-27 11:08:59 +02:00 committed by GitHub
commit 9998a375b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -534,20 +534,20 @@ static void registry_handle_global(void *data, struct wl_registry *registry,
if (strcmp(interface, zwlr_output_manager_v1_interface.name) == 0) { if (strcmp(interface, zwlr_output_manager_v1_interface.name) == 0) {
state->output_manager = wl_registry_bind(registry, name, state->output_manager = wl_registry_bind(registry, name,
&zwlr_output_manager_v1_interface, version); &zwlr_output_manager_v1_interface, 1);
zwlr_output_manager_v1_add_listener(state->output_manager, zwlr_output_manager_v1_add_listener(state->output_manager,
&output_manager_listener, state); &output_manager_listener, state);
} else if (strcmp(interface, zxdg_output_manager_v1_interface.name) == 0) { } else if (strcmp(interface, zxdg_output_manager_v1_interface.name) == 0) {
state->xdg_output_manager = wl_registry_bind(registry, name, state->xdg_output_manager = wl_registry_bind(registry, name,
&zxdg_output_manager_v1_interface, version); &zxdg_output_manager_v1_interface, 2);
} else if(strcmp(interface, zwlr_screencopy_manager_v1_interface.name) == 0) { } else if(strcmp(interface, zwlr_screencopy_manager_v1_interface.name) == 0) {
state->copy_manager = wl_registry_bind(registry, name, state->copy_manager = wl_registry_bind(registry, name,
&zwlr_screencopy_manager_v1_interface, version); &zwlr_screencopy_manager_v1_interface, 1);
} else if(strcmp(interface, zwlr_layer_shell_v1_interface.name) == 0) { } else if(strcmp(interface, zwlr_layer_shell_v1_interface.name) == 0) {
state->layer_shell = wl_registry_bind(registry, name, state->layer_shell = wl_registry_bind(registry, name,
&zwlr_layer_shell_v1_interface, version); &zwlr_layer_shell_v1_interface, 1);
} else if(strcmp(interface, wl_shm_interface.name) == 0) { } else if(strcmp(interface, wl_shm_interface.name) == 0) {
state->shm = wl_registry_bind(registry, name, &wl_shm_interface, version); state->shm = wl_registry_bind(registry, name, &wl_shm_interface, 1);
} }
} }