@@ -100,6 +100,26 @@ typedef Uint32 SDL_WindowID;
100100 */
101101#define SDL_PROP_GLOBAL_VIDEO_WAYLAND_WL_DISPLAY_POINTER "SDL.video.wayland.wl_display"
102102
103+ /**
104+ * A boolean set to true if the windowing system supports the optional
105+ * ext-zones protocol for positioning windows in Wayland. Requires that the
106+ * `SDL_VIDEO_WAYLAND_ENABLE_ZONES` hint be set to enable. See
107+ * docs/README-wayland.md for more information.
108+ *
109+ * Can be queried after video subsystem initialization.
110+ */
111+ #define SDL_PROP_GLOBAL_VIDEO_WAYLAND_HAS_ZONES_BOOLEAN "SDL.video.wayland.has_zones"
112+
113+ /**
114+ * A semicolon-separated list containing the mappings of outputs to zone handles, with
115+ * list items in the form <display name>=<zone handle>.
116+ *
117+ * Can be set before the video subsystem is initialized to import a list of existing
118+ * zone handles for outputs, or read after initialization to retrieve the current list of
119+ * zone handles for outputs.
120+ */
121+ #define SDL_PROP_GLOBAL_VIDEO_WAYLAND_ZONE_MAPPING_STRING "SDL.video.wayland.zone_mapping"
122+
103123/**
104124 * System theme.
105125 *
@@ -1337,6 +1357,9 @@ extern SDL_DECLSPEC SDL_Window * SDLCALL SDL_CreatePopupWindow(SDL_Window *paren
13371357 * - `SDL_PROP_WINDOW_CREATE_WAYLAND_WL_SURFACE_POINTER` - the wl_surface
13381358 * associated with the window, if you want to wrap an existing window. See
13391359 * [README-wayland](README-wayland) for more information.
1360+ * - `SDL_PROP_WINDOW_CREATE_WAYLAND_ZONE_LAYER_NUMBER` - the layer for the
1361+ * window when the ext-zones protocol is in use. See
1362+ * [README-wayland](README-wayland) for more information.
13401363 *
13411364 * These are additional supported properties on Windows:
13421365 *
@@ -1434,6 +1457,7 @@ extern SDL_DECLSPEC SDL_Window * SDLCALL SDL_CreateWindowWithProperties(SDL_Prop
14341457#define SDL_PROP_WINDOW_CREATE_WAYLAND_SURFACE_ROLE_CUSTOM_BOOLEAN "SDL.window.create.wayland.surface_role_custom"
14351458#define SDL_PROP_WINDOW_CREATE_WAYLAND_CREATE_EGL_WINDOW_BOOLEAN "SDL.window.create.wayland.create_egl_window"
14361459#define SDL_PROP_WINDOW_CREATE_WAYLAND_WL_SURFACE_POINTER "SDL.window.create.wayland.wl_surface"
1460+ #define SDL_PROP_WINDOW_CREATE_WAYLAND_ZONE_LAYER_NUMBER "SDL.window.create.wayland.zone_layer"
14371461#define SDL_PROP_WINDOW_CREATE_WIN32_HWND_POINTER "SDL.window.create.win32.hwnd"
14381462#define SDL_PROP_WINDOW_CREATE_WIN32_PIXEL_FORMAT_HWND_POINTER "SDL.window.create.win32.pixel_format_hwnd"
14391463#define SDL_PROP_WINDOW_CREATE_X11_WINDOW_NUMBER "SDL.window.create.x11.window"
0 commit comments