Subject: Re: xmodmap vs. Xnest
To: None <talmage@acm.org, netbsd-users@netbsd.org>
From: Greg A. Woods <woods@weird.com>
List: netbsd-users
Date: 03/23/2003 18:39:43
[ On Sunday, March 23, 2003 at 23:38:00 (+0100), Anders Hjalmarsson wrote: ]
> Subject: Re: xmodmap vs. Xnest 
>
> 
> > I have a puzzler.  Why is it that if I run Xnest followed by xmodmap
> > followed by xterm, the keyboard map isn't changed in the xterm?
> > 
> >         Xnest :1 &
> >         xmodmap -display :1 ./.xmodmap.pc
> >         xterm -display :1
> >
> 
> Because the Xserver resets after the last clients exits, which happens
> between the xmodmap and the xterm commands.
> Look at Xserver(1) man page (the -noreset flag) or try starting an
> additional client before xmodmap and leave it running until after the
> xterm starts.

eg. a window manager!  ;-)

-- 
								Greg A. Woods

+1 416 218-0098;            <g.a.woods@ieee.org>;           <woods@robohack.ca>
Planix, Inc. <woods@planix.com>; VE3TCP; Secrets of the Weird <woods@weird.com>