mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Fix segfault in linux if user clicks on the window manager close button of the
emulator. Also added the ability to close the emulator with the escape key. Fixed an issue that caused a segmentation fault when trying to close the emulator when running in fullscreen mode, which can also be done using the escape key. This makes fullscreen mode useable in linux! git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5023 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -650,7 +650,7 @@ void ReadLinuxKeyboard()
|
||||
|
||||
if ((key >= XK_F1 && key <= XK_F9) ||
|
||||
key == XK_Shift_L || key == XK_Shift_R ||
|
||||
key == XK_Control_L || key == XK_Control_R)
|
||||
key == XK_Control_L || key == XK_Control_R || key == XK_Escape)
|
||||
{
|
||||
XPutBackEvent(WMdisplay, &E);
|
||||
break;
|
||||
@ -669,7 +669,7 @@ void ReadLinuxKeyboard()
|
||||
|
||||
if ((key >= XK_F1 && key <= XK_F9) ||
|
||||
key == XK_Shift_L || key == XK_Shift_R ||
|
||||
key == XK_Control_L || key == XK_Control_R) {
|
||||
key == XK_Control_L || key == XK_Control_R || key == XK_Escape) {
|
||||
XPutBackEvent(WMdisplay, &E);
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user