wayland: Use release for display and seat objects, if available

wl_seat and wl_output gained release methods, which should be preferred over destroy methods if they are available.

Bumps wl_output to version 3.
This commit is contained in:
Frank Praznik
2023-04-03 12:57:36 -04:00
parent 9084b6c666
commit 5c27bc81d8
3 changed files with 56 additions and 71 deletions

View File

@@ -82,7 +82,7 @@ struct SDL_VideoData
struct xkb_context *xkb_context;
struct SDL_WaylandInput *input;
struct SDL_WaylandTabletManager *tablet_manager;
SDL_DisplayData *output_list;
struct wl_list output_list;
#ifdef SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH
struct SDL_WaylandTouch *touch;
@@ -110,7 +110,7 @@ struct SDL_DisplayData
SDL_DisplayID display;
SDL_VideoDisplay placeholder;
int wl_output_done_count;
SDL_DisplayData *next;
struct wl_list link;
};
/* Needed here to get wl_surface declaration, fixes GitHub#4594 */