[Kernel] Fixed incorrect amount of propagated notifications on boot

- Created dedicated method: IsUIActive
This commit is contained in:
Gliniak
2026-01-30 23:49:54 +01:00
committed by Radosław Gliński
parent 7e1506ff23
commit 4dd0842087
4 changed files with 9 additions and 9 deletions

View File

@@ -107,7 +107,7 @@ dword_result_t XamInputGetState_entry(dword_t user_index, dword_t flags,
return X_ERROR_DEVICE_NOT_CONNECTED;
}
if (kernel_state()->xam_state()->xam_dialogs_shown_ > 0) {
if (kernel_state()->xam_state()->IsUIActive()) {
return X_ERROR_SUCCESS;
}
@@ -181,7 +181,7 @@ dword_result_t XamInputGetKeystrokeEx_entry(
keystroke.Zero();
if (kernel_state()->xam_state()->xam_dialogs_shown_ > 0) {
if (kernel_state()->xam_state()->IsUIActive()) {
return X_ERROR_SUCCESS;
}