nanogui: Query !!


Previous by date: 26 Oct 2000 19:33:17 -0000 Re: microwin for the motorola coldfire processor?, George Harvey
Next by date: 26 Oct 2000 19:33:17 -0000 Re: Query !!, Greg Haerr
Previous in thread: 26 Oct 2000 19:33:17 -0000 Re: Query !!, Greg Haerr
Next in thread: 26 Oct 2000 19:33:17 -0000 Re: Query !!, Greg Haerr

Subject: Re: Query !!
From: Ritesh Saigal ####@####.####
Date: 26 Oct 2000 19:33:17 -0000
Message-Id: <39F88685.C201B86A@metabyte.com>

Hi Greg,

I am in fact trying to catch both keyboard button down and button up events.

So my code goes like this

GrSelectEvents(win1, GR_EVENT_MASK_KEY_DOWN  |
                            GR_EVENT_MASK_KEY_UP);

I am able to catch keyboard button down events but the keyboard button up
events are simply not registering. Also I am linking application onto
server. So I dont have a Xserver running seperately. I just run the appln
from the console.

Thanks,

Ritesh.


Greg Haerr wrote:

> : In my application in Linux, I am not receiving button-up events.
> : I have enabled the buttonup events with following piece of code.
> :
> : GrSelectEvents(win1, GR_EVENT_MASK_KEY_UP);
>
> This can be a bit tricky.  It's likely that what's happening is that the
> server is performing an "implicit window grab" on the window below
> your window.  The server will perform an implicit grab on any window
> that has both KEY_DOWN and KEY_UP masks set on it.  If your
> window only has UP selected, then the search continues to windows
> below your window.  So, you'll probably have to or in KEY_DOWN
> in order to get your up events also, but the mouse will then be grabbed
> outside your window if the mouse moves out as well.
>
> Regards,
>
> Greg
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####


Previous by date: 26 Oct 2000 19:33:17 -0000 Re: microwin for the motorola coldfire processor?, George Harvey
Next by date: 26 Oct 2000 19:33:17 -0000 Re: Query !!, Greg Haerr
Previous in thread: 26 Oct 2000 19:33:17 -0000 Re: Query !!, Greg Haerr
Next in thread: 26 Oct 2000 19:33:17 -0000 Re: Query !!, Greg Haerr


Powered by ezmlm-browse 0.20.