{"action":"closed","number":14,"pull_request":{"url":"https://api.github.com/repos/poderosaproject/poderosa/pulls/14","id":43842571,"html_url":"https://github.com/poderosaproject/poderosa/pull/14","diff_url":"https://github.com/poderosaproject/poderosa/pull/14.diff","patch_url":"https://github.com/poderosaproject/poderosa/pull/14.patch","issue_url":"https://api.github.com/repos/poderosaproject/poderosa/issues/14","number":14,"state":"closed","locked":false,"title":"w3mでマウスが使えない問題へのworkaround","user":{"login":"ttdoda","id":1967759,"avatar_url":"https://avatars.githubusercontent.com/u/1967759?v=3","gravatar_id":"","url":"https://api.github.com/users/ttdoda","html_url":"https://github.com/ttdoda","followers_url":"https://api.github.com/users/ttdoda/followers","following_url":"https://api.github.com/users/ttdoda/following{/other_user}","gists_url":"https://api.github.com/users/ttdoda/gists{/gist_id}","starred_url":"https://api.github.com/users/ttdoda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ttdoda/subscriptions","organizations_url":"https://api.github.com/users/ttdoda/orgs","repos_url":"https://api.github.com/users/ttdoda/repos","events_url":"https://api.github.com/users/ttdoda/events{/privacy}","received_events_url":"https://api.github.com/users/ttdoda/received_events","type":"User","site_admin":false},"body":"現状、w3mでマウスが使えません。\r\n原因はw3mがちょっとした事でmouse trackingのoff/onを行う為で、以下のような状況になっています。\r\n 1. マウスボタンを押される\r\n 2. Poderosa が button down 通知を送る\r\n 3. w3m が button down 通知を受け取る\r\n 4. w3m が一旦 mouse tracking を off にした後、on に戻す。\r\n 5. mouse tracking が on に戻った時に、Poderosa が内部で管理しているマウスボタンの状態(_mouseButton)をクリアする\r\n 6. マウスボタンが離される\r\n 7. Poderosa の内部的にはマウスボタンが押されていない状態の為、button up 通知は送られない\r\n 8. w3m は button up 通知が来ない為、マウスボタンクリックの処理を行わない\r\n\r\nw3m が頻繁に mouse tracking の状態を切り替える事が問題だとも言えますが、Poderosa 側で mouse tracking が on 時にマウスボタンの状態をクリアしないようにする事で対応できるので、修正する事を提案します。\r\n \r\nこの修正によって考えられる他への影響ですが、マウスボタンを押している間に mouse tracking off → マウスボタンを離した後に mouse tracking on という状況で、_mouseButton と実際のマウスボタンの状態が食い違い最初のマウスボタンクリックが正しく処理されないというのが考えられます。\r\nしかし、このような状況は滅多に発生しないと思われる事、および発生しても一度クリックをした後は正常に処理が行われるようになる事から、実際に発生している w3m での問題の対処を優先する方がいいと思います。","created_at":"2015-09-01T06:47:51Z","updated_at":"2015-09-13T15:22:56Z","closed_at":"2015-09-13T15:22:56Z","merged_at":null,"merge_commit_sha":"004617ee7daac1f01df7dc800bc740ba1b0e516b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/poderosaproject/poderosa/pulls/14/commits","review_comments_url":"https://api.github.com/repos/poderosaproject/poderosa/pulls/14/comments","review_comment_url":"https://api.github.com/repos/poderosaproject/poderosa/pulls/comments{/number}","comments_url":"https://api.github.com/repos/poderosaproject/poderosa/issues/14/comments","statuses_url":"https://api.github.com/repos/poderosaproject/poderosa/statuses/b7f77db58c8322123574db91e49ec1c28d5c64d9","head":{"label":"ttdoda:w3m-mouse-workaround","ref":"w3m-mouse-workaround","sha":"b7f77db58c8322123574db91e49ec1c28d5c64d9","user":{"login":"ttdoda","id":1967759,"avatar_url":"https://avatars.githubusercontent.com/u/1967759?v=3","gravatar_id":"","url":"https://api.github.com/users/ttdoda","html_url":"https://github.com/ttdoda","followers_url":"https://api.github.com/users/ttdoda/followers","following_url":"https://api.github.com/users/ttdoda/following{/other_user}","gists_url":"https://api.github.com/users/ttdoda/gists{/gist_id}","starred_url":"https://api.github.com/users/ttdoda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ttdoda/subscriptions","organizations_url":"https://api.github.com/users/ttdoda/orgs","repos_url":"https://api.github.com/users/ttdoda/repos","events_url":"https://api.github.com/users/ttdoda/events{/privacy}","received_events_url":"https://api.github.com/users/ttdoda/received_events","type":"User","site_admin":false},"repo":{"id":30173175,"name":"poderosa","full_name":"ttdoda/poderosa","owner":{"login":"ttdoda","id":1967759,"avatar_url":"https://avatars.githubusercontent.com/u/1967759?v=3","gravatar_id":"","url":"https://api.github.com/users/ttdoda","html_url":"https://github.com/ttdoda","followers_url":"https://api.github.com/users/ttdoda/followers","following_url":"https://api.github.com/users/ttdoda/following{/other_user}","gists_url":"https://api.github.com/users/ttdoda/gists{/gist_id}","starred_url":"https://api.github.com/users/ttdoda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ttdoda/subscriptions","organizations_url":"https://api.github.com/users/ttdoda/orgs","repos_url":"https://api.github.com/users/ttdoda/repos","events_url":"https://api.github.com/users/ttdoda/events{/privacy}","received_events_url":"https://api.github.com/users/ttdoda/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ttdoda/poderosa","description":"Terminal Emulator Poderosa - Source","fork":true,"url":"https://api.github.com/repos/ttdoda/poderosa","forks_url":"https://api.github.com/repos/ttdoda/poderosa/forks","keys_url":"https://api.github.com/repos/ttdoda/poderosa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ttdoda/poderosa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ttdoda/poderosa/teams","hooks_url":"https://api.github.com/repos/ttdoda/poderosa/hooks","issue_events_url":"https://api.github.com/repos/ttdoda/poderosa/issues/events{/number}","events_url":"https://api.github.com/repos/ttdoda/poderosa/events","assignees_url":"https://api.github.com/repos/ttdoda/poderosa/assignees{/user}","branches_url":"https://api.github.com/repos/ttdoda/poderosa/branches{/branch}","tags_url":"https://api.github.com/repos/ttdoda/poderosa/tags","blobs_url":"https://api.github.com/repos/ttdoda/poderosa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ttdoda/poderosa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ttdoda/poderosa/git/refs{/sha}","trees_url":"https://api.github.com/repos/ttdoda/poderosa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ttdoda/poderosa/statuses/{sha}","languages_url":"https://api.github.com/repos/ttdoda/poderosa/languages","stargazers_url":"https://api.github.com/repos/ttdoda/poderosa/stargazers","contributors_url":"https://api.github.com/repos/ttdoda/poderosa/contributors","subscribers_url":"https://api.github.com/repos/ttdoda/poderosa/subscribers","subscription_url":"https://api.github.com/repos/ttdoda/poderosa/subscription","commits_url":"https://api.github.com/repos/ttdoda/poderosa/commits{/sha}","git_commits_url":"https://api.github.com/repos/ttdoda/poderosa/git/commits{/sha}","comments_url":"https://api.github.com/repos/ttdoda/poderosa/comments{/number}","issue_comment_url":"https://api.github.com/repos/ttdoda/poderosa/issues/comments{/number}","contents_url":"https://api.github.com/repos/ttdoda/poderosa/contents/{+path}","compare_url":"https://api.github.com/repos/ttdoda/poderosa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ttdoda/poderosa/merges","archive_url":"https://api.github.com/repos/ttdoda/poderosa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ttdoda/poderosa/downloads","issues_url":"https://api.github.com/repos/ttdoda/poderosa/issues{/number}","pulls_url":"https://api.github.com/repos/ttdoda/poderosa/pulls{/number}","milestones_url":"https://api.github.com/repos/ttdoda/poderosa/milestones{/number}","notifications_url":"https://api.github.com/repos/ttdoda/poderosa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ttdoda/poderosa/labels{/name}","releases_url":"https://api.github.com/repos/ttdoda/poderosa/releases{/id}","created_at":"2015-02-02T05:51:13Z","updated_at":"2015-04-21T07:51:42Z","pushed_at":"2015-09-01T06:19:27Z","git_url":"git://github.com/ttdoda/poderosa.git","ssh_url":"git@github.com:ttdoda/poderosa.git","clone_url":"https://github.com/ttdoda/poderosa.git","svn_url":"https://github.com/ttdoda/poderosa","homepage":null,"size":2682,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"poderosaproject:master","ref":"master","sha":"d7249cfab078361d9ac777133a9e9a926c220819","user":{"login":"poderosaproject","id":3754002,"avatar_url":"https://avatars.githubusercontent.com/u/3754002?v=3","gravatar_id":"","url":"https://api.github.com/users/poderosaproject","html_url":"https://github.com/poderosaproject","followers_url":"https://api.github.com/users/poderosaproject/followers","following_url":"https://api.github.com/users/poderosaproject/following{/other_user}","gists_url":"https://api.github.com/users/poderosaproject/gists{/gist_id}","starred_url":"https://api.github.com/users/poderosaproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poderosaproject/subscriptions","organizations_url":"https://api.github.com/users/poderosaproject/orgs","repos_url":"https://api.github.com/users/poderosaproject/repos","events_url":"https://api.github.com/users/poderosaproject/events{/privacy}","received_events_url":"https://api.github.com/users/poderosaproject/received_events","type":"User","site_admin":false},"repo":{"id":8535401,"name":"poderosa","full_name":"poderosaproject/poderosa","owner":{"login":"poderosaproject","id":3754002,"avatar_url":"https://avatars.githubusercontent.com/u/3754002?v=3","gravatar_id":"","url":"https://api.github.com/users/poderosaproject","html_url":"https://github.com/poderosaproject","followers_url":"https://api.github.com/users/poderosaproject/followers","following_url":"https://api.github.com/users/poderosaproject/following{/other_user}","gists_url":"https://api.github.com/users/poderosaproject/gists{/gist_id}","starred_url":"https://api.github.com/users/poderosaproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poderosaproject/subscriptions","organizations_url":"https://api.github.com/users/poderosaproject/orgs","repos_url":"https://api.github.com/users/poderosaproject/repos","events_url":"https://api.github.com/users/poderosaproject/events{/privacy}","received_events_url":"https://api.github.com/users/poderosaproject/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/poderosaproject/poderosa","description":"Terminal Emulator Poderosa - Source","fork":false,"url":"https://api.github.com/repos/poderosaproject/poderosa","forks_url":"https://api.github.com/repos/poderosaproject/poderosa/forks","keys_url":"https://api.github.com/repos/poderosaproject/poderosa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/poderosaproject/poderosa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/poderosaproject/poderosa/teams","hooks_url":"https://api.github.com/repos/poderosaproject/poderosa/hooks","issue_events_url":"https://api.github.com/repos/poderosaproject/poderosa/issues/events{/number}","events_url":"https://api.github.com/repos/poderosaproject/poderosa/events","assignees_url":"https://api.github.com/repos/poderosaproject/poderosa/assignees{/user}","branches_url":"https://api.github.com/repos/poderosaproject/poderosa/branches{/branch}","tags_url":"https://api.github.com/repos/poderosaproject/poderosa/tags","blobs_url":"https://api.github.com/repos/poderosaproject/poderosa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/poderosaproject/poderosa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/poderosaproject/poderosa/git/refs{/sha}","trees_url":"https://api.github.com/repos/poderosaproject/poderosa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/poderosaproject/poderosa/statuses/{sha}","languages_url":"https://api.github.com/repos/poderosaproject/poderosa/languages","stargazers_url":"https://api.github.com/repos/poderosaproject/poderosa/stargazers","contributors_url":"https://api.github.com/repos/poderosaproject/poderosa/contributors","subscribers_url":"https://api.github.com/repos/poderosaproject/poderosa/subscribers","subscription_url":"https://api.github.com/repos/poderosaproject/poderosa/subscription","commits_url":"https://api.github.com/repos/poderosaproject/poderosa/commits{/sha}","git_commits_url":"https://api.github.com/repos/poderosaproject/poderosa/git/commits{/sha}","comments_url":"https://api.github.com/repos/poderosaproject/poderosa/comments{/number}","issue_comment_url":"https://api.github.com/repos/poderosaproject/poderosa/issues/comments{/number}","contents_url":"https://api.github.com/repos/poderosaproject/poderosa/contents/{+path}","compare_url":"https://api.github.com/repos/poderosaproject/poderosa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/poderosaproject/poderosa/merges","archive_url":"https://api.github.com/repos/poderosaproject/poderosa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/poderosaproject/poderosa/downloads","issues_url":"https://api.github.com/repos/poderosaproject/poderosa/issues{/number}","pulls_url":"https://api.github.com/repos/poderosaproject/poderosa/pulls{/number}","milestones_url":"https://api.github.com/repos/poderosaproject/poderosa/milestones{/number}","notifications_url":"https://api.github.com/repos/poderosaproject/poderosa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/poderosaproject/poderosa/labels{/name}","releases_url":"https://api.github.com/repos/poderosaproject/poderosa/releases{/id}","created_at":"2013-03-03T11:34:35Z","updated_at":"2015-09-11T02:36:39Z","pushed_at":"2015-09-13T12:56:39Z","git_url":"git://github.com/poderosaproject/poderosa.git","ssh_url":"git@github.com:poderosaproject/poderosa.git","clone_url":"https://github.com/poderosaproject/poderosa.git","svn_url":"https://github.com/poderosaproject/poderosa","homepage":null,"size":2941,"stargazers_count":84,"watchers_count":84,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":37,"mirror_url":null,"open_issues_count":3,"forks":37,"open_issues":3,"watchers":84,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/poderosaproject/poderosa/pulls/14"},"html":{"href":"https://github.com/poderosaproject/poderosa/pull/14"},"issue":{"href":"https://api.github.com/repos/poderosaproject/poderosa/issues/14"},"comments":{"href":"https://api.github.com/repos/poderosaproject/poderosa/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/poderosaproject/poderosa/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/poderosaproject/poderosa/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/poderosaproject/poderosa/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/poderosaproject/poderosa/statuses/b7f77db58c8322123574db91e49ec1c28d5c64d9"}},"merged":false,"mergeable":false,"mergeable_state":"dirty","merged_by":null,"comments":1,"review_comments":0,"commits":1,"additions":0,"deletions":1,"changed_files":1}}