On Sat, 2008-05-24 at 16:11 +0200, Werner Hoch wrote:
> Hi Peter,
> > This probably causes an extra server round-trip. I guess if its only
> > hotkey events, so its not burdensome, but in theory we should get
> > mouse coordinate data when we receive the keypress event in
> > x_event_key_press - we just don't pass it on.
> 
> Don't think so. The keypress event (GdkEventKey) does not contain the 
> pointer position.
> http://library.gnome.org/devel/gdk/stable/gdk-Event-Structures.html

Ah, my bad. I thought all GdkEvent contained that information.

The only other way to avoid the extra round-trip would be to keep the
old way of recording position data from motion events, but stash it in
the GSCHEM_TOPLEVEL struct.

If we did it that way, we would have to invalidate the coordinates for
events you mentioned, such as zooming by hotkey.
x_event_get_pointer_position() would return the cached coordinates if
they are valid, otherwise query them from the X server.

Until we see any problem with event timings on a remote X11 connection,
I suspect it is not worth implementing this.

-- 
Peter Clifton

Electrical Engineering Division,
Engineering Department,
University of Cambridge,
9, JJ Thomson Avenue,
Cambridge
CB3 0FA

Tel: +44 (0)7729 980173 - (No signal in the lab!)



_______________________________________________
geda-dev mailing list
[email protected]
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev

Reply via email to