]> git.sesse.net Git - vlc/blobdiff - modules/gui/skins/src/vlcproc.cpp
* modules/gui/skins/*:
[vlc] / modules / gui / skins / src / vlcproc.cpp
index 053a65a2af5e90225f51da0bb3c7a61a0bab192c..8cf1cd67693c2e5c4e28fff18286bf1cf9b55828 100644 (file)
@@ -2,7 +2,7 @@
  * vlcproc.cpp: VlcProc class
  *****************************************************************************
  * Copyright (C) 2003 VideoLAN
- * $Id: vlcproc.cpp,v 1.47 2003/10/17 16:40:09 gbazin Exp $
+ * $Id: vlcproc.cpp,v 1.48 2003/10/17 18:17:28 ipkiss Exp $
  *
  * Authors: Olivier Teulière <ipkiss@via.ecp.fr>
  *          Emmanuel Puig    <karibu@via.ecp.fr>
@@ -127,6 +127,17 @@ bool VlcProc::EventProc( Event *evt )
             LoadSkin();
             return true;
 
+        case VLC_ON_TOP:
+            for( list<SkinWindow *>::const_iterator win =
+                    p_intf->p_sys->p_theme->WindowList.begin();
+                win != p_intf->p_sys->p_theme->WindowList.end(); win++ )
+            {
+                (*win)->ToggleOnTop();
+            }
+            // Set the indicator to the new state
+            p_intf->p_sys->b_on_top = !p_intf->p_sys->b_on_top;
+            return true;
+
         case VLC_DROP:
             DropFile( evt->GetParam1() );
             return true;
@@ -574,6 +585,5 @@ void VlcProc::ChangeVolume( unsigned int msg, long param )
             break;
     }
     aout_VolumeGet( p_intf, &volume );
-
 }
 //---------------------------------------------------------------------------