From f29d9d7a34adb466d9a923e037b24c9c64b68af8 Mon Sep 17 00:00:00 2001 From: whitequark Date: Wed, 8 Feb 2017 14:27:02 +0000 Subject: [PATCH] GTK: run DoLater after the next main loop iteration. Before this commit, DoLater would be run as an idle callback, which (depending on system performance) could either result in a half-regenerated sketch being displayed, with only the dragged entity updated, or no regeneration whatsoever during the drag. After this commit, the GTK behavior matches macOS and Win32 ones. --- src/platform/gtkmain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/gtkmain.cpp b/src/platform/gtkmain.cpp index 430f6ecb..1e3248aa 100644 --- a/src/platform/gtkmain.cpp +++ b/src/platform/gtkmain.cpp @@ -213,7 +213,7 @@ static bool LaterCallback() { } void ScheduleLater() { - Glib::signal_idle().connect(&LaterCallback); + Glib::signal_timeout().connect(&LaterCallback, 0); } /* Editor overlay */