Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
auto-idle off by default on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jwahlstrand committed Aug 10, 2023
1 parent 881fdce commit a9c51e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Gtk.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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[])
Expand Down

0 comments on commit a9c51e6

Please sign in to comment.