rethrowing events, and digests

Owen Taylor otaylor@redhat.com
Sun, 08 Feb 2004 20:32:39 -0500


On Sun, 2004-02-08 at 20:08, Keith Packard wrote:
> Around 11 o'clock on Feb 9, Luke Bigum wrote:
> 
> > After an application grabs the keyboard and mouse, is there a way to 'rethrow' 
> > the event so that it gets passed to the correct window? Or is there a way to 
> > sample each event as it occurs without stopping it?
> 
> With a synchronous grab, you can receive the event, change the system and 
> then 'replay' the event.  Useful for doing click-to-type without losing 
> clicks.

There's a pretty big "but" here - yes, you can receive the event and
replay it, but doing this generates an enter/leave pair that is
visible to the application and generates real confusion. 

I don't know a way to do a click-to-focus window manager which passes
through the focus click that doesn't suffer from this problem.

Regards,
						Owen