Re: Moving xkbcomp into the server

2008-11-19 Thread Daniel Stone
Hi, On Wed, Nov 19, 2008 at 05:50:57AM -0800, Dan Nicholson wrote: > On Tue, Nov 18, 2008 at 5:19 PM, Daniel Stone <[EMAIL PROTECTED]> wrote: > > No, yes, and break it out into a convenience library, respectively. I > > toyed with creating a libxkbcommon ages ago for exactly this reason, but > >

Re: Moving xkbcomp into the server

2008-11-19 Thread Dan Nicholson
On Tue, Nov 18, 2008 at 5:19 PM, Daniel Stone <[EMAIL PROTECTED]> wrote: > Hi, > > On Mon, Nov 17, 2008 at 11:25:25AM -0800, Dan Nicholson wrote: >> I decided to take a crack at moving xkbcomp into the server so it's >> not popen'd whenever a keymap is loaded.

Re: Moving xkbcomp into the server

2008-11-18 Thread Daniel Stone
Hi, On Tue, Nov 18, 2008 at 11:08:36AM -0800, Dan Nicholson wrote: > On Tue, Nov 18, 2008 at 4:28 AM, Peter Hutterer > <[EMAIL PROTECTED]> wrote: > >> Right. So, ideally what would happen is: > >> > >> 1. Skip parsing completely if the rules haven't changed. > >> > >> 2. Go directly from RMLVO->in

Re: Moving xkbcomp into the server

2008-11-18 Thread Daniel Stone
Hi, On Mon, Nov 17, 2008 at 11:25:25AM -0800, Dan Nicholson wrote: > I decided to take a crack at moving xkbcomp into the server so it's > not popen'd whenever a keymap is loaded. For the first crack, I'm > trying to just leave xkbcomp pretty much unchanged except for

Re: Moving xkbcomp into the server

2008-11-18 Thread Dan Nicholson
On Tue, Nov 18, 2008 at 2:21 PM, Peter Hutterer <[EMAIL PROTECTED]> wrote: > On Tue, Nov 18, 2008 at 11:08:36AM -0800, Dan Nicholson wrote: >> > I think it'd be less effort to leave the converter as-is and remove the >> > need >> > for calling it, but that's a guess only too. >> >> So, I took a lo

Re: Moving xkbcomp into the server

2008-11-18 Thread Peter Hutterer
On Tue, Nov 18, 2008 at 11:08:36AM -0800, Dan Nicholson wrote: > > I think it'd be less effort to leave the converter as-is and remove the need > > for calling it, but that's a guess only too. > > So, I took a look at this, and it was fairly easy to write an > (untested) patch that checks if RMLVO

Re: Moving xkbcomp into the server

2008-11-18 Thread Dan Nicholson
On Tue, Nov 18, 2008 at 4:28 AM, Peter Hutterer <[EMAIL PROTECTED]> wrote: > On Tue, Nov 18, 2008 at 03:44:32AM -0800, Dan Nicholson wrote: >> I agree completely. As soon as I looked at the path taken in >> XkbDDXNamesFromRules, I realized how insane it was that there were all >> these conversions.

Re: Moving xkbcomp into the server

2008-11-18 Thread Nicolas Mailhot
Le mardi 18 novembre 2008 à 13:36 -0200, Paulo Cesar Pereira de Andrade > A bit offtopic, but I think xkb really lacks a tool like xkeycaps > http://www.jwz.org/xkeycaps/ > > Xkb configuration is not something trivial, and a program like that > would be very useful. Like this? http://simos.

Re: Moving xkbcomp into the server

2008-11-18 Thread Paulo Cesar Pereira de Andrade
Peter Hutterer wrote: > On Tue, Nov 18, 2008 at 03:44:32AM -0800, Dan Nicholson wrote: >> I agree completely. As soon as I looked at the path taken in >> XkbDDXNamesFromRules, I realized how insane it was that there were all >> these conversions. I'm just moving one step at a time here, with the >>

Re: Moving xkbcomp into the server

2008-11-18 Thread Peter Hutterer
On Tue, Nov 18, 2008 at 03:44:32AM -0800, Dan Nicholson wrote: > I agree completely. As soon as I looked at the path taken in > XkbDDXNamesFromRules, I realized how insane it was that there were all > these conversions. I'm just moving one step at a time here, with the > first one being: leave the

Re: Moving xkbcomp into the server

2008-11-18 Thread Dan Nicholson
On Mon, Nov 17, 2008 at 9:17 PM, Alan Coopersmith <[EMAIL PROTECTED]> wrote: > Dan Nicholson wrote: >> One snag I've hit is XStringToKeysym. >> >> Is there an equivalent API in the server to do this conversion? > > I haven't checked if there's one added now, but I know our Xsun > pre-xkb keytable p

Re: Moving xkbcomp into the server

2008-11-18 Thread Dan Nicholson
On Mon, Nov 17, 2008 at 8:54 PM, Peter Hutterer <[EMAIL PROTECTED]> wrote: > On Mon, Nov 17, 2008 at 11:25:25AM -0800, Dan Nicholson wrote: >> I decided to take a crack at moving xkbcomp into the server so it's >> not popen'd whenever a keymap is loaded. For the fir

Re: Moving xkbcomp into the server

2008-11-17 Thread Paulo César Pereira de Andrade
> On Mon, Nov 17, 2008 at 11:25:25AM -0800, Dan Nicholson wrote: >> I decided to take a crack at moving xkbcomp into the server so it's >> not popen'd whenever a keymap is loaded. For the first crack, I'm >> trying to just leave xkbcomp pretty much unchanged

Re: Moving xkbcomp into the server

2008-11-17 Thread Alan Coopersmith
Dan Nicholson wrote: > One snag I've hit is XStringToKeysym. > > Is there an equivalent API in the server to do this conversion? I haven't checked if there's one added now, but I know our Xsun pre-xkb keytable parser linked in a copy of the ks_tables.h file built in the libX11 build and included

Re: Moving xkbcomp into the server

2008-11-17 Thread Peter Hutterer
On Mon, Nov 17, 2008 at 11:25:25AM -0800, Dan Nicholson wrote: > I decided to take a crack at moving xkbcomp into the server so it's > not popen'd whenever a keymap is loaded. For the first crack, I'm > trying to just leave xkbcomp pretty much unchanged except for the >

Moving xkbcomp into the server

2008-11-17 Thread Dan Nicholson
I decided to take a crack at moving xkbcomp into the server so it's not popen'd whenever a keymap is loaded. For the first crack, I'm trying to just leave xkbcomp pretty much unchanged except for the interface. What's causing me the most difficulty is converting to server API.