From a9c51e6f14f5a0d0248681be8972c53de6484275 Mon Sep 17 00:00:00 2001 From: Jared Wahlstrand Date: Thu, 10 Aug 2023 07:14:33 -0400 Subject: [PATCH] auto-idle off by default on Windows --- src/Gtk.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Gtk.jl b/src/Gtk.jl index 1492ce9c..c27b2a9a 100644 --- a/src/Gtk.jl +++ b/src/Gtk.jl @@ -154,7 +154,8 @@ function __init__() # that call to also start the eventloop GLib.gtk_eventloop_f[] = enable_eventloop - auto_idle[] = get(ENV, "GTK_AUTO_IDLE", "true") == "true" + default_auto_idle = Sys.iswindows() ? "false" : "true" + auto_idle[] = get(ENV, "GTK_AUTO_IDLE", default_auto_idle) == "true" # by default, defer starting the event loop until either `show`, `showall`, or `g_idle_add` is called enable_eventloop(!auto_idle[])