{"action":"created","issue":{"url":"https://api.github.com/repos/tomaka/winit/issues/656","repository_url":"https://api.github.com/repos/tomaka/winit","labels_url":"https://api.github.com/repos/tomaka/winit/issues/656/labels{/name}","comments_url":"https://api.github.com/repos/tomaka/winit/issues/656/comments","events_url":"https://api.github.com/repos/tomaka/winit/issues/656/events","html_url":"https://github.com/tomaka/winit/issues/656","id":360678131,"node_id":"MDU6SXNzdWUzNjA2NzgxMzE=","number":656,"title":"`set_cursor` effect is delayed on Windows","user":{"login":"kuviman","id":5872782,"node_id":"MDQ6VXNlcjU4NzI3ODI=","avatar_url":"https://avatars2.githubusercontent.com/u/5872782?v=4","gravatar_id":"","url":"https://api.github.com/users/kuviman","html_url":"https://github.com/kuviman","followers_url":"https://api.github.com/users/kuviman/followers","following_url":"https://api.github.com/users/kuviman/following{/other_user}","gists_url":"https://api.github.com/users/kuviman/gists{/gist_id}","starred_url":"https://api.github.com/users/kuviman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuviman/subscriptions","organizations_url":"https://api.github.com/users/kuviman/orgs","repos_url":"https://api.github.com/users/kuviman/repos","events_url":"https://api.github.com/users/kuviman/events{/privacy}","received_events_url":"https://api.github.com/users/kuviman/received_events","type":"User","site_admin":false},"labels":[{"id":474349895,"node_id":"MDU6TGFiZWw0NzQzNDk4OTU=","url":"https://api.github.com/repos/tomaka/winit/labels/platform:%20Windows","name":"platform: Windows","color":"FFF882","default":false},{"id":924440496,"node_id":"MDU6TGFiZWw5MjQ0NDA0OTY=","url":"https://api.github.com/repos/tomaka/winit/labels/status:%20in%20progress","name":"status: in progress","color":"C7FEC1","default":false},{"id":330617022,"node_id":"MDU6TGFiZWwzMzA2MTcwMjI=","url":"https://api.github.com/repos/tomaka/winit/labels/type:%20enhancement","name":"type: enhancement","color":"C4F2FF","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-16T21:01:23Z","updated_at":"2018-09-17T21:50:58Z","closed_at":null,"author_association":"NONE","body":"This can be seen using the `cursor` example. It should change cursor on every key press.\r\n\r\nBut, on Windows, if you press a key, nothing happens until you move a mouse.\r\n\r\nI took a brief look into the code, and it looks like cursor is updated only when the window receives `WM_SETCURSOR` message. According to [the documentation](https://docs.microsoft.com/en-us/windows/desktop/menurc/wm-setcursor), this is sent \"if the mouse causes the cursor to move within a window and mouse input is not captured\".\r\n\r\nActually, it looks like you capture mouse input simply by holding any mouse button. So, in the same `cursor` example, if you press a key while holding a mouse button, cursor is changed only after you release mouse button."},"comment":{"url":"https://api.github.com/repos/tomaka/winit/issues/comments/422183777","html_url":"https://github.com/tomaka/winit/issues/656#issuecomment-422183777","issue_url":"https://api.github.com/repos/tomaka/winit/issues/656","id":422183777,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMjE4Mzc3Nw==","user":{"login":"kuviman","id":5872782,"node_id":"MDQ6VXNlcjU4NzI3ODI=","avatar_url":"https://avatars2.githubusercontent.com/u/5872782?v=4","gravatar_id":"","url":"https://api.github.com/users/kuviman","html_url":"https://github.com/kuviman","followers_url":"https://api.github.com/users/kuviman/followers","following_url":"https://api.github.com/users/kuviman/following{/other_user}","gists_url":"https://api.github.com/users/kuviman/gists{/gist_id}","starred_url":"https://api.github.com/users/kuviman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuviman/subscriptions","organizations_url":"https://api.github.com/users/kuviman/orgs","repos_url":"https://api.github.com/users/kuviman/repos","events_url":"https://api.github.com/users/kuviman/events{/privacy}","received_events_url":"https://api.github.com/users/kuviman/received_events","type":"User","site_admin":false},"created_at":"2018-09-17T21:50:58Z","updated_at":"2018-09-17T21:50:58Z","author_association":"NONE","body":"@francesca64 Tried it, works perfectly!"}}
{"actor":{"display_login":"kuviman"}}