On Fri, Apr 07, 2000 at 04:42:52PM -0400, Stephane Lussier wrote:
> 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?
+Fri Jan 17 08:29:52 1997 David Faure <[EMAIL PROTECTED]>
+
+ * [misc/main.c]
+ Added putenv XKB_DISABLE to disable XKB extension (which, when
+ present, causes AltGr to change keyboard group instead of being a
+ modifier).
diff -ur --new-file wine970112/misc/main.c wine970120/misc/main.c
--- wine970112/misc/main.c Sun Jan 12 19:28:08 1997
+++ wine970120/misc/main.c Mon Jan 20 20:39:55 1997
@@ -176,7 +176,7 @@
* MAIN_Usage
*/
#ifndef WINELIB32
-static void MAIN_Usage( char *name )
+void MAIN_Usage( char *name )
{
fprintf( stderr, USAGE, name );
exit(1);
@@ -642,7 +642,9 @@
MSG_WineStartTicks = (tv.tv_sec * 1000) + (tv.tv_usec / 1000);
XrmInitialize();
-
+
+ putenv("XKB_DISABLE="); /* Disable XKB extension if present. */
+
MAIN_ParseOptions( argc, argv );
if (Options.desktopGeometry && Options.managed)
OK ? :)
Andreas Mohr