{"action":"created","issue":{"url":"https://api.github.com/repos/kovidgoyal/kitty/issues/1103","repository_url":"https://api.github.com/repos/kovidgoyal/kitty","labels_url":"https://api.github.com/repos/kovidgoyal/kitty/issues/1103/labels{/name}","comments_url":"https://api.github.com/repos/kovidgoyal/kitty/issues/1103/comments","events_url":"https://api.github.com/repos/kovidgoyal/kitty/issues/1103/events","html_url":"https://github.com/kovidgoyal/kitty/issues/1103","id":374753390,"node_id":"MDU6SXNzdWUzNzQ3NTMzOTA=","number":1103,"title":"Unable to switch tabs or select text with the mouse cursor after switching apps without moving the cursor","user":{"login":"Luflosi","id":15217907,"node_id":"MDQ6VXNlcjE1MjE3OTA3","avatar_url":"https://avatars1.githubusercontent.com/u/15217907?v=4","gravatar_id":"","url":"https://api.github.com/users/Luflosi","html_url":"https://github.com/Luflosi","followers_url":"https://api.github.com/users/Luflosi/followers","following_url":"https://api.github.com/users/Luflosi/following{/other_user}","gists_url":"https://api.github.com/users/Luflosi/gists{/gist_id}","starred_url":"https://api.github.com/users/Luflosi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Luflosi/subscriptions","organizations_url":"https://api.github.com/users/Luflosi/orgs","repos_url":"https://api.github.com/users/Luflosi/repos","events_url":"https://api.github.com/users/Luflosi/events{/privacy}","received_events_url":"https://api.github.com/users/Luflosi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-10-28T13:22:15Z","updated_at":"2018-10-30T11:43:02Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"I only tested this on macOS.\r\n\r\nSteps to reproduce the issue:\r\n1. Open kitty\r\n2. Create a new tab\r\n3. Make sure that the kitty window is completely visible, not obscured by other windows\r\n4. Make sure kitty does not have focus by clicking on the desktop for example\r\n5. Hover over the kitty tab that is not active\r\n6. Click once to focus the window\r\n7. Do NOT move the cursor!\r\n8. Another click should switch to the tab under the cursor but it doesn't\r\n9. Move the mouse cursor at least one pixel\r\n10. The tab can now be properly clicked on again\r\n\r\nThe same problem also occurs when trying to select text with a double or triple click (three or four clicks when also counting the initial click to focus the window) when kitty is not focused at first and the mouse isn't moved after kitty gets focus. It is not enough to just switch to a different kitty OS window to reproduce the issue, the kitty app has to loose focus entirely (no \"kitty\" text next to the apple logo in the top left corner). kitty seems to have an incorrect mouse cursor position when getting focus again as long as the cursor hasn't moved. The fix might be as simple as doing whatever happens when the mouse cursor is moved every time kitty gets focus again."},"comment":{"url":"https://api.github.com/repos/kovidgoyal/kitty/issues/comments/434268814","html_url":"https://github.com/kovidgoyal/kitty/issues/1103#issuecomment-434268814","issue_url":"https://api.github.com/repos/kovidgoyal/kitty/issues/1103","id":434268814,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNDI2ODgxNA==","user":{"login":"martinetd","id":1729331,"node_id":"MDQ6VXNlcjE3MjkzMzE=","avatar_url":"https://avatars0.githubusercontent.com/u/1729331?v=4","gravatar_id":"","url":"https://api.github.com/users/martinetd","html_url":"https://github.com/martinetd","followers_url":"https://api.github.com/users/martinetd/followers","following_url":"https://api.github.com/users/martinetd/following{/other_user}","gists_url":"https://api.github.com/users/martinetd/gists{/gist_id}","starred_url":"https://api.github.com/users/martinetd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinetd/subscriptions","organizations_url":"https://api.github.com/users/martinetd/orgs","repos_url":"https://api.github.com/users/martinetd/repos","events_url":"https://api.github.com/users/martinetd/events{/privacy}","received_events_url":"https://api.github.com/users/martinetd/received_events","type":"User","site_admin":false},"created_at":"2018-10-30T11:43:02Z","updated_at":"2018-10-30T11:43:02Z","author_association":"CONTRIBUTOR","body":"Ah, my bad, that's not what I had understood. We're talking about something else then (that also is a problem if you change tab/layout through keybindings without moving the cursor for example).\r\n\r\nFor your case I guess it's missing an update on enter event like it did on X11, so I understand what you were saying better now. I think it has to come from the lowest level though (e.g. can't have this in the common code as you suggested, because you wouldn't have access to the event's x/y there)\r\nI'm not familiar with what's available in the event in e.g. `mouseEntered` from `cocoa_window.m` and I don't speak objective C but maybe you can add something similar to `mouseMoved` in there..."}}
{"actor":{"display_login":"martinetd"}}