After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 321103 - MouseMotionListener does not accurately report the mouse position
MouseMotionListener does not accurately report the mouse position
Status: RESOLVED FIXED
Product: java-gnome
Classification: Bindings
Component: GTK
mainline
Other All
: Normal normal
: ---
Assigned To: Adam Jocksch
java-gnome bindings maintainers
Depends on:
Blocks: 324745
 
 
Reported: 2005-11-09 22:17 UTC by Adam Jocksch
Modified: 2005-12-21 22:39 UTC
See Also:
GNOME target: ---
GNOME version: 2.11/2.12


Attachments
testcase (697 bytes, text/plain)
2005-11-09 22:20 UTC, Adam Jocksch
  Details
patch (673 bytes, patch)
2005-12-21 22:05 UTC, Adam Jocksch
none Details | Review

Description Adam Jocksch 2005-11-09 22:17:44 UTC
Please describe the problem:
When a mouse motion listener is added to a widget, it only seems to report event
when
a) the mouse enters the widget, or
b) the user clicks and drags the mouse

It seems that when another event is fired (i.e. Text entered into a TextView or
the mouse is clicked) if the mouse if moved after a single MouseMotionEvent is
fired but then after that nothing.

Steps to reproduce:
1. 
2. 
3. 


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Adam Jocksch 2005-11-09 22:20:21 UTC
Created attachment 54548 [details]
testcase

This is a testcase that demonstrates the problem mentioned above
Comment 2 Adam Jocksch 2005-12-21 22:05:35 UTC
Created attachment 56274 [details] [review]
patch

I've been able to get most widgets to work correctly with MouseMotionListeners, with the exception of TextView, and TreeView.

TreeView in particular is odd, since it seems to emit no events until it is resized, after which is emits events as usual.
Comment 3 Adam Jocksch 2005-12-21 22:10:30 UTC
TextView is not a bug, see bug #324745.
Comment 4 Adam Jocksch 2005-12-21 22:39:58 UTC
The above patch has been committed to cvs HEAD