Fix copy/paste in the Linux embedding (flutter/engine#18624)

The recent refactoring to support headless mode accidentally passed
nullptr instead of the window (if any) to the platform handler that
manages clipboard interactions, causing it to be broken.

Fixes https://github.com/flutter/flutter/issues/58035
This commit is contained in:
stuartmorgan 2020-05-27 16:48:26 -07:00 committed by GitHub
parent bcffa0ad1c
commit 135f9a33ca

View File

@ -652,7 +652,7 @@ static void SetUpCommonEngineState(FlutterDesktopEngineState* state,
// System channel handler.
state->platform_handler = std::make_unique<flutter::PlatformHandler>(
state->internal_plugin_registrar->messenger(), nullptr);
state->internal_plugin_registrar->messenger(), window);
}
bool FlutterDesktopInit() {