aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBo Hu <bohu@google.com>2024-04-24 18:42:19 -0700
committerBo Hu <bohu@google.com>2024-04-25 01:45:38 +0000
commit91cde573ec349099904826fc5c94eef54c36c6e2 (patch)
treee9ea64b6d4a9cb3541909893669dd01163954b7c
parent280a865e5fe73946c736b36e9b30b27520486f8b (diff)
downloadqemu-91cde573ec349099904826fc5c94eef54c36c6e2.tar.gz
multidisplay: send notification of loaded display
Bug: 335781727 Change-Id: I59fd88dafbf5fb7e965eef499bdd78875f154882
-rw-r--r--android/android-emu/android/emulation/MultiDisplay.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/android/android-emu/android/emulation/MultiDisplay.cpp b/android/android-emu/android/emulation/MultiDisplay.cpp
index 44717cbbf6..78d94638d2 100644
--- a/android/android-emu/android/emulation/MultiDisplay.cpp
+++ b/android/android-emu/android/emulation/MultiDisplay.cpp
@@ -1270,6 +1270,9 @@ void MultiDisplay::onLoad(base::Stream* stream) {
}
for (const auto& iter : ids) {
mWindowAgent->updateUIMultiDisplayPage(iter);
+ fireEvent(DisplayChangeEvent{DisplayChange::DisplayChanged, iter});
+ LOG(DEBUG) << "loaded display " << iter;
+ notifyDisplayChanges();
}
}