]> git.sesse.net Git - vlc/commitdiff
skins2(Linux): enable transparency since setOpacity is now available (to be tested)
authorErwan Tulou <erwan10@videolan.org>
Tue, 22 Dec 2009 16:45:51 +0000 (17:45 +0100)
committerErwan Tulou <erwan10@videolan.org>
Tue, 22 Dec 2009 16:49:59 +0000 (17:49 +0100)
modules/gui/skins2/src/skin_main.cpp
modules/gui/skins2/src/window_manager.cpp

index e650ac7de3aa2e5d3a7ed01180078a355f9bc430..a69ac75a198fff53db46c1130065b2434567582a 100644 (file)
@@ -591,9 +591,9 @@ vlc_module_begin ()
               SKINS2_SYSTRAY_LONG, false );
     add_bool( "skins2-taskbar", true, onTaskBarChange, SKINS2_TASKBAR,
               SKINS2_TASKBAR_LONG, false );
+#endif
     add_bool( "skins2-transparency", false, NULL, SKINS2_TRANSPARENCY,
               SKINS2_TRANSPARENCY_LONG, false );
-#endif
 
     add_bool( "skinned-playlist", true, NULL, SKINS2_PLAYLIST,
               SKINS2_PLAYLIST_LONG, false );
index 01385b5682af2d34042e11638a5c429b18bee4c4..00dcf7156e81e0aaa6960c9e64b57dd37638750b 100644 (file)
@@ -71,7 +71,6 @@ void WindowManager::startMove( TopWindow &rWindow )
     m_movingWindows.clear();
     buildDependSet( m_movingWindows, &rWindow );
 
-#ifdef WIN32
     if( config_GetInt( getIntf(), "skins2-transparency" ) )
     {
         // Change the opacity of the moving windows
@@ -89,7 +88,6 @@ void WindowManager::startMove( TopWindow &rWindow )
             (*it)->refresh( 0, 0, (*it)->getWidth(), (*it)->getHeight() );
         }
     }
-#endif
 }
 
 
@@ -98,7 +96,6 @@ void WindowManager::stopMove()
     WinSet_t::const_iterator itWin1, itWin2;
     AncList_t::const_iterator itAnc1, itAnc2;
 
-#ifdef WIN32
     if( config_GetInt( getIntf(), "skins2-transparency" ) )
     {
         // Restore the opacity of the moving windows
@@ -108,7 +105,6 @@ void WindowManager::stopMove()
             (*it)->setOpacity( m_alpha );
         }
     }
-#endif
 
     // Delete the dependencies
     m_dependencies.clear();