]> git.sesse.net Git - vlc/blobdiff - bin/vlc.c
Qt4: use putenv() before any thread is created
[vlc] / bin / vlc.c
index 1c64656a23377d4ec67ec4451b1c7250a7feb605..9ccbdd89401bcc2036c80f0b20ac506dbefa574b 100644 (file)
--- a/bin/vlc.c
+++ b/bin/vlc.c
@@ -89,6 +89,10 @@ int main( int i_argc, const char *ppsz_argv[] )
 #   endif
 #endif
 
+    /* Make Xlib hide visuals with an alphachannel. Ensure that Qt4 will not
+     * use the alpha channel for the embedded video window. */
+    putenv( (char *)"XLIB_SKIP_ARGB_VISUALS=1" );
+
     /* Synchronously intercepted POSIX signals.
      *
      * In a threaded program such as VLC, the only sane way to handle signals