nanogui@linuxhacker.org

nanogui@linuxhacker.org


Subject: Re: Support for on-screen keyboard - SUMMARY
From: Alex Holden
Date: Sun, 16 May 1999 10:48:11 +0100 (GMT)

On Sun, 16 May 1999, Vidar Hokstad wrote:
>     This require:
>        * A small command to be added to the server to register the 
>           on-screen keyboard client as receiver of server wide focus
>           events.
>        * A small change to the command that generate focus events to
>           send a copy to any client registered to receive server
>           wide events.

We probably want something along this line for the window manager, so it
can alter the border appearance for the currently focussed window.

>   - The on-screen keyboard then sits and waits for focus events, and
>      as long as it is focus events for other windows than itself, it
>      updates it's last-focused flag. Whenever it receive a button press
>      over one of it's keys, it then calls a "SendKeyEvent()" type
>      function, with the last-focused windowid, the key, and any modifiers
>      as arguments.
> 
>      This require:
>         * A command to be added to the server to send key events
>            to the server, that will then resend the key event to
>            the specified window.
> 
> Anyone that sees problems, or have suggestions for changes to this
> modified suggestion?

Sounds okay, but I have to say I also quite like the idea now of having a
special value (which can never be a real window ID, like -1 or something)
for the SendKeyEvent() call which tells the server to send it to the last
focussed window.

--------------- Linux- the choice of a GNU generation. --------------
: Alex Holden (M1CJD)- Caver, Programmer, Land Rover nut, Radio Ham :
-------------------- http://www.linuxhacker.org/ --------------------


nanogui@linuxhacker.org