Fix released-event misfire for GtkGestureMultiPress #58
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
動作環境
JDim 0.1.0-20190309(git:e649cc2f0c)
GTK3版 (--with-gtkmm3)
不具合
GTK3版を使っているとき、スレビューでマウスボタンのButton4をクリックしても割り当てた動作が実行されないことがある。ボタンの反応が悪い。
原因と修正
GtkGestureMultiPress
を使うとButton4以上のマウスボタン(>=Button4)でbutton-release-eventの反応が悪くなる環境があります。そのためpressedから直接releasedの処理を実行することによって問題を回避します。互換性に関する注意
修正後は>=Button4にダブルクリックの設定を割り当てても無効となります。(私が確認したマウスではButton4,5はダブルクリックに対応していませんでした。)
修正にあたり不具合報告をしていただきありがとうございました。
https://mao.5ch.net/test/read.cgi/linux/1540656394/988-989
https://mao.5ch.net/test/read.cgi/linux/1551877588/11