diff --git a/src/unix/unix.c b/src/unix/unix.c index 45f108ef2..cbf41f6ed 100644 --- a/src/unix/unix.c +++ b/src/unix/unix.c @@ -1327,8 +1327,10 @@ main(int argc, char **argv) mouse_inside = 0; break; } + break; } default: + { // route everything else flag_osd_open = osd_handle(event); @@ -1339,6 +1341,7 @@ main(int argc, char **argv) } break; + } } } else diff --git a/src/unix/unix_osd.c b/src/unix/unix_osd.c index 3fbdf723f..5e155367a 100644 --- a/src/unix/unix_osd.c +++ b/src/unix/unix_osd.c @@ -326,6 +326,9 @@ int osd_handle(SDL_Event event) case 11 : // "pause - pause the the emulated system", break; case 12 : // "fullscreen - toggle fullscreen", + unix_executeLine(strdup("fullscreen")); + // directly close the OSD + return 0; break; case 13 : // "version - print version and license information", break;