[racket-dev] mouse motion events in Linux

From: Stephan Houben (stephanh at planet.nl)
Date: Sat Jul 16 14:36:53 EDT 2011

Dear list,

Recently I noticed that on Linux, the canvas only
receives mouse motion events if some mouse button is
pressed.

Since this is not mentioned in the documentation I assume
this behaviour was not intended, please correct me if wrong.

The cause of this behaviour is the use of the flag
  GDK_BUTTON_MOTION_MASK in
collects/mred/private/wx/gtk/canvas.rkt

This flag indeed means "only send motion events if a button is down".
If all motion request are desired the flag
  GDK_POINTER_MOTION_MASK
should be used instead.

I have sent a pull request for this one-line change on github and would
recommend that it gets merged, if indeed receiving all motion
events is the intended behaviour.

Thanks,

Stephan


Posted on the dev mailing list.