[cairo] How to test the gl backend?

Benjamin Otte otte at redhat.com
Fri Jun 4 06:58:17 PDT 2010


On Fri, 2010-06-04 at 23:28 +1000, Russell Shaw wrote:
> In a properly done widget tool kit, no events are emitted from the X server
> unless the mouse or keyboard button is pressed, or if the mouse crosses the
> border of a window (only if the widget registered for those events).
> Continuous mouse-motion events are usually only used in drag operations
> when a mouse button is held down.
> 
> Continuous mouse-motion emission of events from the X server will make
> networked applications utterly unuseable on all but the fastest (ie local)
> networks.
> 
A mouse motion event is ~50 bytes. With roughly 100 motion events per
second (timed with moving the mouse over xev) that's 5kB/s and works
fine over a modem. _If_ you frantically move the mouse.

Also, every browser has been using the single-window approach with
motion events since forever (otherwise hover wouldn't work) and I
haven't seen people complain about it.

But feel free to prove use wrong.

Benjamin



More information about the cairo mailing list