diff --git a/library/common/glfw/embedder.cc b/library/common/glfw/embedder.cc index cf4ab1ceb..06e4917c5 100644 --- a/library/common/glfw/embedder.cc +++ b/library/common/glfw/embedder.cc @@ -532,13 +532,11 @@ void FlutterEmbedderRunWindowLoop(FlutterWindowRef flutter_window) { XInitThreads(); #endif while (!glfwWindowShouldClose(window)) { -#ifdef __linux__ glfwPollEvents(); +#ifdef __linux__ if (gtk_events_pending()) { gtk_main_iteration(); } -#else - glfwWaitEvents(); #endif // TODO(awdavies): This will be deprecated soon. __FlutterEngineFlushPendingTasksNow();