diff options
author | Alexander Larsson <alexl@redhat.com> | 2009-08-31 09:38:14 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2009-08-31 15:06:01 +0200 |
commit | b18afe905437f0d4a0faad03cee2fb1770b68b69 (patch) | |
tree | e4a081fde30194db9938da84e2799e298e142a1c /gdk/gdk.c | |
parent | 4d3b19fa7cd4177d66ab6f20b52bf49ead10eb41 (diff) | |
download | gtk+-b18afe905437f0d4a0faad03cee2fb1770b68b69.tar.gz |
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.
Diffstat (limited to 'gdk/gdk.c')
-rw-r--r-- | gdk/gdk.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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 (); |