From 85f47f996c2aa815c3b6f452a30c8de47f49155f Mon Sep 17 00:00:00 2001 From: Jacobwasbeast Date: Wed, 12 Feb 2025 21:44:33 -0600 Subject: [PATCH] fix: software keyboard not working on miiEdit --- src/Ryujinx.HLE/HOS/Applets/WindowSystem.cs | 2 +- .../SystemAppletProxy/ICommonStateGetter.cs | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Ryujinx.HLE/HOS/Applets/WindowSystem.cs b/src/Ryujinx.HLE/HOS/Applets/WindowSystem.cs index 95b9ecde8..88fade3b3 100644 --- a/src/Ryujinx.HLE/HOS/Applets/WindowSystem.cs +++ b/src/Ryujinx.HLE/HOS/Applets/WindowSystem.cs @@ -592,7 +592,7 @@ namespace Ryujinx.HLE.HOS.Applets { if (_applets.TryGetValue(pid, out applet)) { - if (_applets.Count > 1) + if (_applets.Count > 2) { return true; } diff --git a/src/Ryujinx.HLE/HOS/Services/Am/AppletAE/AllSystemAppletProxiesService/SystemAppletProxy/ICommonStateGetter.cs b/src/Ryujinx.HLE/HOS/Services/Am/AppletAE/AllSystemAppletProxiesService/SystemAppletProxy/ICommonStateGetter.cs index e2d4ba628..737a522d6 100644 --- a/src/Ryujinx.HLE/HOS/Services/Am/AppletAE/AllSystemAppletProxiesService/SystemAppletProxy/ICommonStateGetter.cs +++ b/src/Ryujinx.HLE/HOS/Services/Am/AppletAE/AllSystemAppletProxiesService/SystemAppletProxy/ICommonStateGetter.cs @@ -135,6 +135,9 @@ namespace Ryujinx.HLE.HOS.Services.Am.AppletAE.AllSystemAppletProxiesService.Sys Logger.Stub?.PrintStub(LogClass.ServiceAm); _acquiredSleepLockEvent.ReadableEvent.Signal(); + + _applet.AppletState.SetFocusForce(true); + context.Device.System.WindowSystem.RequestApplicationToGetForeground(_applet.ProcessHandle.Pid); return ResultCode.Success; }