GNOME Bugzilla – Bug 573166
Need docs on how to handle motion events properly
Last modified: 2018-02-10 03:37:15 UTC
Bug #573154 indicates that there is widespread confusion and old/wrong code that deals with pointer motion hints, querying pointer positions, and in general implementing press-drag-release for widgets. We need a chapter in the documentation that explains how all of these work: - Motion events - do you need all of them? - Pointer motion hints - how does the X server handle them? is_hint means "this is the last motion event you'll get until you ask for more". - gdk_event_query_motions() to request more motion events. - gdk_device_get_history() for exotic apps. - You need to use the ButtonRelease event's coordinates! Don't assume that the last motion event had the final coordinates for your press-drag-release sequence.
We're moving to gitlab! As part of this move, we are closing bugs that haven't seen activity in more than 5 years. If this issue is still imporant to you and still relevant with GTK+ 3.22 or master, please consider creating a gitlab issue for it.