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

turn off auto-idle by default on Windows #692

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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