Commit b18afe90 authored by Alexander Larsson's avatar Alexander Larsson

Don't propagate GDK_NATIVE_WINDOWS to child processes

Generally you only need to work around bugs in one specific app, so we
don't want to affect the applications that application will start.
Thus we unset GDK_NATIVE_WINDOWS after reading it.
parent 4d3b19fa
......@@ -206,8 +206,13 @@ gdk_pre_parse_libgtk_only (void)
#endif /* G_ENABLE_DEBUG */
if (getenv("GDK_NATIVE_WINDOWS"))
_gdk_native_windows = TRUE;
if (getenv ("GDK_NATIVE_WINDOWS"))
_gdk_native_windows = TRUE;
/* Ensure that this is not propagated
to spawned applications */
g_unsetenv ("GDK_NATIVE_WINDOWS");
g_type_init ();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment