mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-09-03 21:29:03 +00:00
window close widget now maps to Mac "power" key
This commit is contained in:
parent
3a777718bd
commit
4162bfeffb
@ -1670,8 +1670,10 @@ static void handle_events(void)
|
||||
|
||||
// Window "close" widget clicked
|
||||
case ClientMessage:
|
||||
if (event.xclient.format == 32 && event.xclient.data.l[0] == WM_DELETE_WINDOW)
|
||||
XBell(x_display, 0);
|
||||
if (event.xclient.format == 32 && event.xclient.data.l[0] == WM_DELETE_WINDOW) {
|
||||
ADBKeyDown(0x7f); // Power key
|
||||
ADBKeyUp(0x7f);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user