]> git.sesse.net Git - vlc/commitdiff
Qt4: do not implement below state
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 26 Dec 2009 17:46:21 +0000 (19:46 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 26 Dec 2009 17:58:02 +0000 (19:58 +0200)
modules/gui/qt4/main_interface.cpp

index 493181b394c455e814b4987eb0c1c3e907c92333..8663c3807c82d5505b19baac37bd762e099163e9 100644 (file)
@@ -69,7 +69,7 @@
 
 #include <vlc_keys.h> /* Wheel event */
 #include <vlc_vout_window.h>
-#include <vlc_vout.h>
+#include <vlc_vout_display.h>
 
 // #define DEBUG_INTF
 /* Callback prototypes */
@@ -894,8 +894,9 @@ int MainInterface::controlVideo( int i_query, va_list args )
     }
     case VOUT_WINDOW_SET_STATE:
     {
-        int i_arg = va_arg( args, int );
-        QApplication::postEvent( this, new SetVideoOnTopQtEvent( i_arg ) );
+        unsigned i_arg = va_arg( args, unsigned );
+        unsigned on_top = i_arg & VOUT_WINDOW_STATE_ABOVE;
+        QApplication::postEvent( this, new SetVideoOnTopQtEvent( on_top ) );
         return VLC_SUCCESS;
     }
     case VOUT_WINDOW_SET_FULLSCREEN: