Skip to content
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

Wasm initial Window::inner_size() #11

Open
daxpedda opened this issue Nov 15, 2023 · 0 comments
Open

Wasm initial Window::inner_size() #11

daxpedda opened this issue Nov 15, 2023 · 0 comments

Comments

@daxpedda
Copy link
Contributor

After Window creation, one has to wait for a Resized event, otherwise Window::inner_size() will always return None.

I don't know what the best solution is here, but it might be better to split the test function into two parts: Window creation and testing. It looks to me like other backends encounter similar problems; e.g. in Softbuffer you have to wait until the window is mapped.

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

No branches or pull requests

1 participant