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

Window does not get resized after creating window, when using Wayland. #8

Open
gardenappl opened this issue Jan 18, 2025 · 0 comments

Comments

@gardenappl
Copy link
Contributor

See #5

My program, svitlyna, resizes its screen to fit the image that it's displaying - the resizing happens after the reset vector because the program relies on Console/vector to get the image data.

for whatever reason, the resizing doesn't always work on Wayland. I tried updating the egui dependency to include emilk/egui#4211, but it didn't seem to work either. However, the new versions require you to specify build features for Wayland and/or X11, and I was able to fix it by adding the x11 feature but not the wayland feature. But I don't think that's a good solution, so I'm not submitting it.

This does work with X11, for example, by unsetting the WAYLAND_DISPLAY environment variable.

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