diff options
author | Liam <byteslice@airmail.cc> | 2024-02-04 22:05:44 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2024-02-09 15:20:53 +0100 |
commit | b206ea5cfe90bca01b48e44a0cf93cb51f4877d1 (patch) | |
tree | 33e6fd07e5dd6e802f71f2830d6c66a2b44fbefd /src/core/hle/service/am/window_controller.cpp | |
parent | am: stub SetMediaPlaybackState for self controller (diff) | |
download | yuzu-b206ea5cfe90bca01b48e44a0cf93cb51f4877d1.tar yuzu-b206ea5cfe90bca01b48e44a0cf93cb51f4877d1.tar.gz yuzu-b206ea5cfe90bca01b48e44a0cf93cb51f4877d1.tar.bz2 yuzu-b206ea5cfe90bca01b48e44a0cf93cb51f4877d1.tar.lz yuzu-b206ea5cfe90bca01b48e44a0cf93cb51f4877d1.tar.xz yuzu-b206ea5cfe90bca01b48e44a0cf93cb51f4877d1.tar.zst yuzu-b206ea5cfe90bca01b48e44a0cf93cb51f4877d1.zip |
Diffstat (limited to 'src/core/hle/service/am/window_controller.cpp')
-rw-r--r-- | src/core/hle/service/am/window_controller.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/service/am/window_controller.cpp b/src/core/hle/service/am/window_controller.cpp index f00957f83..c07ef228b 100644 --- a/src/core/hle/service/am/window_controller.cpp +++ b/src/core/hle/service/am/window_controller.cpp @@ -62,12 +62,12 @@ void IWindowController::SetAppletWindowVisibility(HLERequestContext& ctx) { applet->hid_registration.EnableAppletToGetInput(visible); if (visible) { - applet->message_queue.PushMessage(AppletMessageQueue::AppletMessage::ChangeIntoForeground); applet->focus_state = FocusState::InFocus; + applet->message_queue.PushMessage(AppletMessageQueue::AppletMessage::ChangeIntoForeground); } else { applet->focus_state = FocusState::NotInFocus; + applet->message_queue.PushMessage(AppletMessageQueue::AppletMessage::ChangeIntoBackground); } - applet->message_queue.PushMessage(AppletMessageQueue::AppletMessage::FocusStateChanged); IPC::ResponseBuilder rb{ctx, 2}; rb.Push(ResultSuccess); |