mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-23 04:33:24 +00:00
Force use of MacX mappings with Apple's X server
This commit is contained in:
parent
2747c0b5e2
commit
61e223471b
@ -1353,6 +1353,10 @@ static void keycode_init(void)
|
|||||||
|
|
||||||
// Search for server vendor string, then read keycodes
|
// Search for server vendor string, then read keycodes
|
||||||
const char *vendor = ServerVendor(x_display);
|
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;
|
bool vendor_found = false;
|
||||||
char line[256];
|
char line[256];
|
||||||
while (fgets(line, 255, f)) {
|
while (fgets(line, 255, f)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user