Hi Greg,

On Mon, 2008-03-31 at 14:19 -0700, Greg Brubaker wrote:

> but I cannot figure out exactly how to determine if the event is a
> FocusIn or FocusOut event.


In the callback function, If you have access to the 'XEvent' structure,
then you can determine if the event was a 'FocusIn' event or a
'FocusOut' event as below :

switch (xevent->type)
        {
        case FocusIn:
                printf ("It is FocuIn event\n");
        case FocusOut:
                printf ("It is FocuOut event\n");
        }

HTH.

Thanks,
Srirama

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email.

www.wipro.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.opensolaris.org/pipermail/xwin-discuss/attachments/20080401/93f9b41c/attachment.html>

Reply via email to