From 135f9a33cac5ba8ffabc7bd7e2a14361cbb3a11d Mon Sep 17 00:00:00 2001 From: stuartmorgan Date: Wed, 27 May 2020 16:48:26 -0700 Subject: [PATCH] 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 --- engine/src/flutter/shell/platform/glfw/flutter_glfw.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/flutter/shell/platform/glfw/flutter_glfw.cc b/engine/src/flutter/shell/platform/glfw/flutter_glfw.cc index 968830a5f14..e8b017106d1 100644 --- a/engine/src/flutter/shell/platform/glfw/flutter_glfw.cc +++ b/engine/src/flutter/shell/platform/glfw/flutter_glfw.cc @@ -652,7 +652,7 @@ static void SetUpCommonEngineState(FlutterDesktopEngineState* state, // System channel handler. state->platform_handler = std::make_unique( - state->internal_plugin_registrar->messenger(), nullptr); + state->internal_plugin_registrar->messenger(), window); } bool FlutterDesktopInit() {