NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: xsrc/40242: xkb: Alternative layouts don't work due to groups "invented" by the server (on both native and pkgsrc xorg)
The following reply was made to PR xsrc/40242; it has been noted by GNATS.
From: "Jared D. McNeill" <jmcneill%invisible.ca@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: xsrc-manager%netbsd.org@localhost, gnats-admin%netbsd.org@localhost,
netbsd-bugs%netbsd.org@localhost
Subject: Re: xsrc/40242: xkb: Alternative layouts don't work due to groups
"invented" by the server (on both native and pkgsrc xorg)
Date: Sat, 20 Dec 2008 22:11:39 -0500
This is a multi-part message in MIME format.
--------------030009020508070607080700
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
The attached test application can reproduce the issue.
$ cc `pkg-config --cflags x11` pr40242.c -o pr40242 `pkg-config --libs x11`
$ ./pr40242
XkbGetKeyboard(ff) returned 0x0
XkbGetKeyboard(bf) returned 0x7f7ffd308110
Cheers,
Jared
--------------030009020508070607080700
Content-Type: text/plain;
name="pr40242.c"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="pr40242.c"
#include <stdio.h>
#include <stdlib.h>
#include <X11/Xlib.h>
#include <X11/XKBlib.h>
int
main(void)
{
Display *display;
XkbDescPtr xkb;
int which;
display = XOpenDisplay(getenv("DISPLAY"));
if (!display) {
(void)fprintf(stderr, "couldn't open display\n");
return 1;
}
which = XkbGBN_AllComponentsMask;
xkb = XkbGetKeyboard(display, which, XkbUseCoreKbd);
printf("XkbGetKeyboard(%x) returned %p\n", which, xkb);
which = XkbGBN_AllComponentsMask & ~XkbGBN_GeometryMask;
xkb = XkbGetKeyboard(display, which, XkbUseCoreKbd);
printf("XkbGetKeyboard(%x) returned %p\n", which, xkb);
return 0;
}
--------------030009020508070607080700--
Home |
Main Index |
Thread Index |
Old Index