{"action":"created","issue":{"url":"https://api.github.com/repos/tomaka/winit/issues/17","repository_url":"https://api.github.com/repos/tomaka/winit","labels_url":"https://api.github.com/repos/tomaka/winit/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/tomaka/winit/issues/17/comments","events_url":"https://api.github.com/repos/tomaka/winit/issues/17/events","html_url":"https://github.com/tomaka/winit/issues/17","id":181353618,"number":17,"title":"Window example on wayland creates 0x0 pixels window","user":{"login":"Vinatorul","id":6770624,"avatar_url":"https://avatars.githubusercontent.com/u/6770624?v=3","gravatar_id":"","url":"https://api.github.com/users/Vinatorul","html_url":"https://github.com/Vinatorul","followers_url":"https://api.github.com/users/Vinatorul/followers","following_url":"https://api.github.com/users/Vinatorul/following{/other_user}","gists_url":"https://api.github.com/users/Vinatorul/gists{/gist_id}","starred_url":"https://api.github.com/users/Vinatorul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vinatorul/subscriptions","organizations_url":"https://api.github.com/users/Vinatorul/orgs","repos_url":"https://api.github.com/users/Vinatorul/repos","events_url":"https://api.github.com/users/Vinatorul/events{/privacy}","received_events_url":"https://api.github.com/users/Vinatorul/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-06T08:32:49Z","updated_at":"2016-10-06T19:46:59Z","closed_at":null,"body":"It looks like `winit` doesn't resize wayland window after start (`resize_callback` function have not been called).\r\nI've checked `glutin` example on wayland and it works well. Then I checked the difference beetween `api/wayland/window.rs` in `winit` and `glutin` and found out that there is no `resize` calls in `winit`. For example: [glutin](https://github.com/tomaka/glutin/blob/master/src/api/wayland/window.rs#L79) and [winit](https://github.com/tomaka/winit/blob/master/src/api/wayland/window.rs#L73). It seems to me that there should be some code to resize `surface`, but I haven't find any API in `wayland-client` to do so.\r\n"},"comment":{"url":"https://api.github.com/repos/tomaka/winit/issues/comments/252068721","html_url":"https://github.com/tomaka/winit/issues/17#issuecomment-252068721","issue_url":"https://api.github.com/repos/tomaka/winit/issues/17","id":252068721,"user":{"login":"vberger","id":3009227,"avatar_url":"https://avatars.githubusercontent.com/u/3009227?v=3","gravatar_id":"","url":"https://api.github.com/users/vberger","html_url":"https://github.com/vberger","followers_url":"https://api.github.com/users/vberger/followers","following_url":"https://api.github.com/users/vberger/following{/other_user}","gists_url":"https://api.github.com/users/vberger/gists{/gist_id}","starred_url":"https://api.github.com/users/vberger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vberger/subscriptions","organizations_url":"https://api.github.com/users/vberger/orgs","repos_url":"https://api.github.com/users/vberger/repos","events_url":"https://api.github.com/users/vberger/events{/privacy}","received_events_url":"https://api.github.com/users/vberger/received_events","type":"User","site_admin":false},"created_at":"2016-10-06T19:46:59Z","updated_at":"2016-10-06T19:46:59Z","body":"Yes, on wayland, the size of a surface is defined by the size of the buffer associated to it.\r\n\r\nIn case of glutin, the `resize` method is a method provided by the EGL layer, to define the size of the OpenGL surface (I expect vulkan should provide some similar API).\r\n\r\nIn an opengl-less wayland case, the size of a surface is defined by the size of the `wl_buffer` associated to it. If no buffer is associated, the surface is 0 by 0."}}
{"actor":{"display_login":"vberger"}}