Re: To catch an event when a Prima window is out of focus

From: Dmitry Karasik <dmitry_at_karasik.eu.org>
Date: 22 Feb 2006 16:50:02 +0100
To: prima_at_prima.eu.org

On 22 Feb 06 at 05:56, ) wrote:

> Can a Prima program catch a event when it doesn't have a focus? Any
> sample program is anywhere?

Two options:

- you can exclusively capture the mouse, which is straighforward, just
call capture(1) ( and capture(0) when it's over ). But this means that the
other programs won't be able to receive the mouse events.

- or, you can poll the mouse position and buttons' state once in a while (see
  examples/eyes.pl )

-- 
Sincerely,
	Dmitry Karasik
Received on Wed 22 Feb 2006 - 16:50:07 CET

This archive was generated by hypermail 2.2.0 : Sat 19 Mar 2011 - 18:35:06 CET