nanogui: [Question] about nanowm
Subject:
Re: [nanogui] [Question] about nanowm
From:
Jordan Crouse ####@####.####
Date:
7 Feb 2002 17:28:09 -0000
Message-Id: <E16YsHB-0003dk-00@ns.censoft.com>
Actually, X has a XGrabKey() function that actually grabs keystrokes and
sends it to the specified window.
This actually just grabs a key combination (keystroke + modifiers) and sends
it to the specified window regardless of focus. This would be quite useful,
and pretty easy to emulate in Microwindows.
Jordan
Quote the man page:
On Thursday 07 February 2002 09:42, Greg Haerr mentioned:
> : when nano-x clients launch in nanowm(/src/bin/nanowm), nano-x clients
> : have
>
> window focus.
>
> : if that is so, all event go to nano-x clients with focused. but i want
> : that
>
> event receive nanowm likewise.
>
> : event hooking api have no place in nano-x api ? if it exist good to work.
> : anyhow, the solution is the utilization of GrGetFocus() and
>
> GrInjectKeyboardEvent() i guess.
>
>
> A mechanism similar to event-hooking could be implemented
> somewhat like X11's ConfigureRequest. You could modify the
> server to duplicate messages, similar to the way that the
> window manager gets the UPDATE event messages.
>
> Regards,
>
> Greg
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####