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.
pull/200/head
whitequark 2017-02-08 14:27:02 +00:00
parent 1871efa02b
commit f29d9d7a34
1 changed files with 1 additions and 1 deletions

View File

@ -213,7 +213,7 @@ static bool LaterCallback() {
} }
void ScheduleLater() { void ScheduleLater() {
Glib::signal_idle().connect(&LaterCallback); Glib::signal_timeout().connect(&LaterCallback, 0);
} }
/* Editor overlay */ /* Editor overlay */