Re: Non us keyboard and AltGr key

2000-04-07 Thread Alexandre Julliard

"Stephane Lussier" [EMAIL PROTECTED] writes:

 With xev you can specify a window id on the command line. So I've launched
 Notepad with Wine, and then start "xev -id x" where xxx correspond to
 Notepad window. As you can guess xev was consistent with what I've found
 with Wine, the state field in XKeyEvent was 0 when I'm using the AltGr.
 
 I'm obtaining the same behavior with CorelLinux 1.0 and Red Hat 6.1.
 
 I'm wondering if it's not the way Wine creates the Windows that cause the
 problem. I'm continuing my investigation.

It may be due to the fact that Wine disables the XKB extension. I'm
not entirely sure why we do that but there was probably a good
reason...

-- 
Alexandre Julliard
[EMAIL PROTECTED]




RE: Non us keyboard and AltGr key

2000-04-07 Thread Stephane Lussier

Alexandre wrote:

 It may be due to the fact that Wine disables the XKB extension. I'm
 not entirely sure why we do that but there was probably a good
 reason...

 --
 Alexandre Julliard
 [EMAIL PROTECTED]


You're right. By commenting the line:

putenv("XKB_DISABLE=");

in windows/x11drv/main.c : X11DRV_USER_Initialize()

I can now see the 0x2000 in the state field.

On my machine, it looks like the AltGr modifier for International keyboard
is implemented using this extension, it looks like I will need this to be
able to support correctly international keyboard. Does somebody out there
knows/remembers why do we have to disable the XKB extension in Wine?

Stephane Lussier
Macadamian Technologies