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 example on wayland creates 0x0 pixels window #17
Comments
cc @vberger |
From my knowledge of wayland, the size of the surface of a wayland window is actually determined by the OpenGL or Vulkan context that uses it. Since winit doesn't create an OpenGL/Vulkan context, it has no way to set the size. Maybe that should be more explicit in winit. |
Yes, on wayland, the size of a surface is defined by the size of the buffer associated to it. In case of glutin, the In an opengl-less wayland case, the size of a surface is defined by the size of the |
Regarding wayland, if you want to do EGL stuff without glutin, you'll need to use the However, I've just recently completely rewrote the API of wayland-client, and not yet upgraded winit and glutin to it (but I'm working on it), so you might want to wait until it's done. I'll probably rethink details of wayland on winit on the process. |
I forget to mention - I faced with it while working on rust-windowing/glutin#813 |
@Vinatorul You need to wrap everything anyway, not only for wayland. |
Thanks for answers. I'll close this issue as it works as intended. |
It looks like
winit
doesn't resize wayland window after start (resize_callback
function have not been called).I've checked
glutin
example on wayland and it works well. Then I checked the difference beetweenapi/wayland/window.rs
inwinit
andglutin
and found out that there is noresize
calls inwinit
. For example: glutin and winit. It seems to me that there should be some code to resizesurface
, but I haven't find any API inwayland-client
to do so.The text was updated successfully, but these errors were encountered: