From dc011024f99976bf5bd4b725c0ad8a247932f15f Mon Sep 17 00:00:00 2001 From: yellows8 Date: Thu, 4 Oct 2018 22:19:58 -0400 Subject: [PATCH] Call appletSetFocusHandlingMode in appletExit for AppletType_Application. --- nx/source/services/applet.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nx/source/services/applet.c b/nx/source/services/applet.c index 6c974315..dee359b2 100644 --- a/nx/source/services/applet.c +++ b/nx/source/services/applet.c @@ -272,6 +272,8 @@ void appletExit(void) { if (atomicDecrement64(&g_refCnt) == 0) { + if (__nx_applet_type == AppletType_Application) appletSetFocusHandlingMode(1); + if ((envIsNso() && __nx_applet_exit_mode==0) || __nx_applet_exit_mode==1) { if (_appletIsApplication() || __nx_applet_type == AppletType_LibraryApplet) {