wayland: Set/unset the opaque regions on surfaces when transparency is toggled

Caches the SDL_HINT_VIDEO_EGL_ALLOW_TRANSPARENCY hint at init time and registers a callback, which is fired when the hint is changed during runtime and toggles the opaque region for existing surfaces.
This commit is contained in:
Frank Praznik
2022-10-04 12:59:26 -04:00
committed by Ethan Lee
parent ea5958009c
commit c2b0c41c0a
4 changed files with 50 additions and 7 deletions

View File

@@ -95,6 +95,7 @@ typedef struct {
char *classname;
int relative_mouse_mode;
SDL_bool egl_transparency_enabled;
} SDL_VideoData;
struct SDL_WaylandOutputData {