[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gEDA-dev: PCB Nasties.. as I find them..




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!)



_______________________________________________
geda-dev mailing list
geda-dev@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev