mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-07 07:06:46 +00:00
Force use of MacX mappings on MacOS X with Apple's X server.
This commit is contained in:
parent
5357aac108
commit
15f0ca6a22
@ -884,6 +884,12 @@ static void keycode_init(void)
|
||||
|
||||
// Search for server vendor string, then read keycodes
|
||||
const char *vendor = ServerVendor(x_display);
|
||||
#if (defined(__APPLE__) && defined(__MACH__))
|
||||
// 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";
|
||||
#endif
|
||||
bool vendor_found = false;
|
||||
char line[256];
|
||||
while (fgets(line, 255, f)) {
|
||||
|
Loading…
Reference in New Issue
Block a user