gEDA-dev: PCB Nasties.. as I find them..
Peter Clifton
pcjc2 at cam.ac.uk
Mon Dec 10 20:09:35 EST 2007
ghid_shift_is_pressed ()
ghid_control_is_pressed ()
Make round-trips to the X server just to find out if a modifier key is
pressed. I can see these things being called from various places in the
core of PCB, and think (if possible) the GTK hid ought to cache the
appropriate result, like Lesstif does.
I'm only noticing this, as I wanted to implement support for using
motion hints to rate-limit motion callback processing. I can't do this
whilst the core may be calling gdk_display_get_pointer() via these
functions, as that immediately tells the X server to send more motion
events if they are available.
We are also calling gdk_display_get_pointer() from other bits of code,
where we probably don't need to.
--
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!)
More information about the geda-dev
mailing list