src/video/wayland/SDL_waylandvideo.c
changeset 13701 3cc182fa6110
parent 13422 fd6a12de91c7
child 13805 4709c1dfeabb
equal deleted inserted replaced
13700:97f6cba13e49 13701:3cc182fa6110
   362     if (strcmp(interface, "wl_compositor") == 0) {
   362     if (strcmp(interface, "wl_compositor") == 0) {
   363         d->compositor = wl_registry_bind(d->registry, id, &wl_compositor_interface, SDL_min(3, version));
   363         d->compositor = wl_registry_bind(d->registry, id, &wl_compositor_interface, SDL_min(3, version));
   364     } else if (strcmp(interface, "wl_output") == 0) {
   364     } else if (strcmp(interface, "wl_output") == 0) {
   365         Wayland_add_display(d, id);
   365         Wayland_add_display(d, id);
   366     } else if (strcmp(interface, "wl_seat") == 0) {
   366     } else if (strcmp(interface, "wl_seat") == 0) {
   367         Wayland_display_add_input(d, id);
   367         Wayland_display_add_input(d, id, version);
   368     } else if (strcmp(interface, "xdg_wm_base") == 0) {
   368     } else if (strcmp(interface, "xdg_wm_base") == 0) {
   369         d->shell.xdg = wl_registry_bind(d->registry, id, &xdg_wm_base_interface, 1);
   369         d->shell.xdg = wl_registry_bind(d->registry, id, &xdg_wm_base_interface, 1);
   370         xdg_wm_base_add_listener(d->shell.xdg, &shell_listener_xdg, NULL);
   370         xdg_wm_base_add_listener(d->shell.xdg, &shell_listener_xdg, NULL);
   371     } else if (strcmp(interface, "zxdg_shell_v6") == 0) {
   371     } else if (strcmp(interface, "zxdg_shell_v6") == 0) {
   372         d->shell.zxdg = wl_registry_bind(d->registry, id, &zxdg_shell_v6_interface, 1);
   372         d->shell.zxdg = wl_registry_bind(d->registry, id, &zxdg_shell_v6_interface, 1);