nanogui@linuxhacker.org
nanogui@linuxhacker.org
Alex,
Thanks, the client I'm using is the nxkbd, when I touch on the
'keyboard' silkscreen will popup the keyboard, second touch will take it
away (exit).
It seems that I have to obtain the PID together with the Windows ID to
do a 'clean' exit by waitpid too.
Thanks
CC
----- Original Message -----
From: Alex Holden <alex@linuxhacker.org>
To: CCYau <imaxsz@szonline.net>
Cc: <nanogui@linuxhacker.org>
Sent: Wednesday, November 15, 2000 7:59 PM
Subject: Re: silkscreen buttons, GrCloseWindows
> On Wed, 15 Nov 2000, CCYau wrote:
> > How can I cleanly kill a sub-process using Gr Windows function?
>
> The client needs to select for the event GR_EVENT_TYPE_CLOSE_REQ, and
> exit when it receives it. Note that GrCloseWindow() doesn't actually close
> the window; it just sends a close request event to it (so the client can
> pop up a "do you want to save your open files first" box or something if
> it wants). GrKillWindow() forcibly disconnects the client from the server
> and removes all it's windows (it's intended to be used only if the client
> crashes)- it doesn't actually kill the client, but generally the client
> will exit the next time it tries to access the connection to the server
> and finds that it's been disconnected.
>
> --
> ------- Alex Holden -------
> http://www.linuxhacker.org/
> http://www.robogeeks.org/
>
nanogui@linuxhacker.org