]> git.sesse.net Git - vlc/blobdiff - modules/gui/skins2/x11/x11_loop.cpp
Copyright fixes
[vlc] / modules / gui / skins2 / x11 / x11_loop.cpp
index 1d97c12bb25b6d469019a9e18c10396d0d2ff36a..f4b9888b1aa81e924edda5d3a43a831df47cd287 100644 (file)
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * x11_loop.cpp
  *****************************************************************************
- * Copyright (C) 2003 VideoLAN
+ * Copyright (C) 2003 VideoLAN (Centrale Réseaux) and its contributors
  * $Id$
  *
  * Authors: Cyril Deguet     <asmax@via.ecp.fr>
@@ -158,7 +158,11 @@ void X11Loop::handleX11Event()
         {
             // When the "parent" window is mapped, show all the visible
             // windows, as it is not automatic, unfortunately
-            getIntf()->p_sys->p_theme->getWindowManager().synchVisibility();
+            Theme *pTheme = getIntf()->p_sys->p_theme;
+            if( pTheme )
+            {
+                pTheme->getWindowManager().synchVisibility();
+            }
         }
         return;
     }