Force use of MacX mappings with Apple's X server

This commit is contained in:
gbeauche 2004-12-18 19:28:33 +00:00
parent 2747c0b5e2
commit 61e223471b

View File

@ -1353,6 +1353,10 @@ static void keycode_init(void)
// Search for server vendor string, then read keycodes
const char *vendor = ServerVendor(x_display);
// Force use of MacX mappings on MacOS X with Apple's X server
int dummy;
if (XQueryExtension(x_display, "Apple-DRI", &dummy, &dummy, &dummy))
vendor = "MacX";
bool vendor_found = false;
char line[256];
while (fgets(line, 255, f)) {