Skip to content

Property SDL_PROP_WINDOW_EMSCRIPTEN_CANVAS_ID missing from SDL_GetWindowProperties (Emscripten) #12681

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
vittorioromeo opened this issue Mar 30, 2025 · 0 comments · Fixed by #12705
Milestone

Comments

@vittorioromeo
Copy link
Contributor

vittorioromeo commented Mar 30, 2025

One more Emscripten inconsistency that might become more relevant when #12575 is finalized. It is currently possible to set SDL_PROP_WINDOW_CREATE_EMSCRIPTEN_CANVAS_ID when creating a window via SDL_CreateWindowWithProperties:

SDL_SetNumberProperty(props, SDL_PROP_WINDOW_CREATE_EMSCRIPTEN_CANVAS_ID, canvasId);

But it is not possible to retrieve that canvas id anymore via SDL_GetWindowProperties + SDL_GetNumberProperty, as the SDL_PROP_WINDOW_EMSCRIPTEN_CANVAS_ID does not exist.

@vittorioromeo vittorioromeo changed the title Property SDL_PROP_WINDOW_EMSCRIPTEN_CANVAS_ID missing from SDL_GetWindowProperties Property SDL_PROP_WINDOW_EMSCRIPTEN_CANVAS_ID missing from SDL_GetWindowProperties (Emscripten) Mar 30, 2025
@slouken slouken added this to the 3.4.0 milestone Mar 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants