diff options
author | 2023-09-26 18:41:18 +0000 | |
---|---|---|
committer | 2023-09-26 18:41:18 +0000 | |
commit | 95f6bb966eeda68c5e1f5c3fd512a1262cd93e91 (patch) | |
tree | 82d3a94caa47ec6218e8236644199e369ae0c2a3 /libs/gui/DisplayEventDispatcher.cpp | |
parent | c4662740bb4525def84b1d24dccadb9c5905eb2f (diff) | |
parent | 5dcd75d46c5e4eda82c42660eea56f0d923acd53 (diff) |
Merge "SF: Propagate display hotplug errors" into main
Diffstat (limited to 'libs/gui/DisplayEventDispatcher.cpp')
-rw-r--r-- | libs/gui/DisplayEventDispatcher.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libs/gui/DisplayEventDispatcher.cpp b/libs/gui/DisplayEventDispatcher.cpp index 8a883770d8..5dd058cf9f 100644 --- a/libs/gui/DisplayEventDispatcher.cpp +++ b/libs/gui/DisplayEventDispatcher.cpp @@ -173,7 +173,13 @@ bool DisplayEventDispatcher::processPendingEvents(nsecs_t* outTimestamp, *outVsyncEventData = ev.vsync.vsyncData; break; case DisplayEventReceiver::DISPLAY_EVENT_HOTPLUG: - dispatchHotplug(ev.header.timestamp, ev.header.displayId, ev.hotplug.connected); + if (ev.hotplug.connectionError == 0) { + dispatchHotplug(ev.header.timestamp, ev.header.displayId, + ev.hotplug.connected); + } else { + dispatchHotplugConnectionError(ev.header.timestamp, + ev.hotplug.connectionError); + } break; case DisplayEventReceiver::DISPLAY_EVENT_MODE_CHANGE: dispatchModeChanged(ev.header.timestamp, ev.header.displayId, |