{"action":"created","issue":{"url":"https://api.github.com/repos/tomaka/winit/issues/163","repository_url":"https://api.github.com/repos/tomaka/winit","labels_url":"https://api.github.com/repos/tomaka/winit/issues/163/labels{/name}","comments_url":"https://api.github.com/repos/tomaka/winit/issues/163/comments","events_url":"https://api.github.com/repos/tomaka/winit/issues/163/events","html_url":"https://github.com/tomaka/winit/issues/163","id":223545000,"number":163,"title":"wayland uses non-native decorations and can't be resized or moved [arch+gnome]","user":{"login":"mitchmindtree","id":4587373,"avatar_url":"https://avatars2.githubusercontent.com/u/4587373?v=3","gravatar_id":"","url":"https://api.github.com/users/mitchmindtree","html_url":"https://github.com/mitchmindtree","followers_url":"https://api.github.com/users/mitchmindtree/followers","following_url":"https://api.github.com/users/mitchmindtree/following{/other_user}","gists_url":"https://api.github.com/users/mitchmindtree/gists{/gist_id}","starred_url":"https://api.github.com/users/mitchmindtree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitchmindtree/subscriptions","organizations_url":"https://api.github.com/users/mitchmindtree/orgs","repos_url":"https://api.github.com/users/mitchmindtree/repos","events_url":"https://api.github.com/users/mitchmindtree/events{/privacy}","received_events_url":"https://api.github.com/users/mitchmindtree/received_events","type":"User","site_admin":false},"labels":[{"id":474349960,"url":"https://api.github.com/repos/tomaka/winit/labels/A-wayland","name":"A-wayland","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-04-22T06:46:09Z","updated_at":"2017-04-22T13:43:16Z","closed_at":null,"body":"The following is an image of a program I'm working on that uses winit with the wayland backend (via glutin via glium via conrod):\r\n\r\n![screenshot from 2017-04-22 16-31-15](https://cloud.githubusercontent.com/assets/4587373/25302114/24142414-277a-11e7-8b58-916087ffd369.png)\r\n\r\nThe window decorations are thin gray bars rather than the native gnome decorations that look like this:\r\n\r\n![screenshot from 2017-04-22 16-40-02](https://cloud.githubusercontent.com/assets/4587373/25302125/5d62e606-277a-11e7-811a-eb689bcb92aa.png)\r\n\r\nDoes anyone know why this might be? @vberger any ideas on what's happening or where I could look to fix it? Any advice appreciated :)"},"comment":{"url":"https://api.github.com/repos/tomaka/winit/issues/comments/296374186","html_url":"https://github.com/tomaka/winit/issues/163#issuecomment-296374186","issue_url":"https://api.github.com/repos/tomaka/winit/issues/163","id":296374186,"user":{"login":"vberger","id":3009227,"avatar_url":"https://avatars0.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":"2017-04-22T13:43:16Z","updated_at":"2017-04-22T13:43:16Z","body":"Well, on wayland (especially gnome), decorations are drawn client side. As such, the decorations are currently handled for winit by my [wayland-window](https://github.com/vberger/wayland-window) crate.\r\n\r\nFor now, this crate only draws basic grey decorations, because I haven't yet done the work to make them prettier and include buttons to close/minimize, etc... But there is no simple way to make them look native. This would require either:\r\n\r\n- manually parsing the GTK configuration and reproduce the behavior of the GTK engine (this is kind of a lot of work, and similar work would need to be done for Qt for KDE environments).\r\n- using GTK to open the window (which kind of defeats the the purpose of winit).\r\n\r\nHowever, resizing the window (by clicking and dragging the border) and moving it (by clicking and dragging the large top decoration) should work. If not, it is either a bug of wayland-window or of gnome."}}
{"actor":{"display_login":"vberger"}}