mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-06 00:30:08 +00:00
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.
This commit is contained in:
parent
4d3b19fa7c
commit
b18afe9054
@ -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 ();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user