From 61e223471b3e2ad3eb004a6629ba33065a8f92d4 Mon Sep 17 00:00:00 2001 From: gbeauche <> Date: Sat, 18 Dec 2004 19:28:33 +0000 Subject: [PATCH] Force use of MacX mappings with Apple's X server --- BasiliskII/src/Unix/video_x.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/BasiliskII/src/Unix/video_x.cpp b/BasiliskII/src/Unix/video_x.cpp index 2610575e..70b130bd 100644 --- a/BasiliskII/src/Unix/video_x.cpp +++ b/BasiliskII/src/Unix/video_x.cpp @@ -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)) {