mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
In linux when in fullscreen, make escape leave fullscreen then pause.
More like on windows? git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5079 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -269,9 +269,11 @@ void ProcessXEvents(void)
|
||||
key = XLookupKeysym((XKeyEvent*)&event, 0);
|
||||
if(key == XK_F4 && ((event.xkey.state & Mod1Mask) == Mod1Mask))
|
||||
Host_Message(WM_USER_STOP);
|
||||
else if (key == XK_Escape)
|
||||
Host_Message(WM_USER_PAUSE);
|
||||
break;
|
||||
case KeyPress:
|
||||
key = XLookupKeysym((XKeyEvent*)&event, 0);
|
||||
if (key == XK_Escape)
|
||||
Host_Message(WM_USER_PAUSE);
|
||||
case ClientMessage:
|
||||
if ((ulong) event.xclient.data.l[0] == XInternAtom(dpy, "WM_DELETE_WINDOW", False))
|
||||
Host_Message(WM_USER_STOP);
|
||||
|
Reference in New Issue
Block a user