removed saver_on, saver_off calls, they are already in x11_common.c
[mplayer.git] / libvo / vo_xvmc.c
index e09dd96..3a620ce 100644 (file)
@@ -792,7 +792,8 @@ found_subpic:
 
    mp_msg(MSGT_VO,MSGL_V, "[xvmc] dx: %d dy: %d dw: %d dh: %d\n",drwX,drwY,vo_dwidth,vo_dheight );
 
-   saver_off(mDisplay);  // turning off screen saver
+   if (vo_ontop) vo_x11_setlayer(mDisplay, vo_window, vo_ontop);
+
 //end vo_xv
 
    /* store image dimesions for displaying */
@@ -1206,7 +1207,6 @@ static void uninit(void){
    if( verbose > 3 ) printf("vo_xvmc: uninit called\n");
    xvmc_free();
  //from vo_xv
-   saver_on(mDisplay);
    vo_vm_close(mDisplay);
    vo_x11_uninit();
 }
@@ -1408,6 +1408,9 @@ static uint32_t control(uint32_t request, void *data, ... )
       //vo_xv
       case VOCTRL_GUISUPPORT:
          return VO_TRUE;
+      case VOCTRL_ONTOP:
+         vo_x11_ontop();
+        return VO_TRUE;
       case VOCTRL_FULLSCREEN:
          vo_x11_fullscreen();
       case VOCTRL_GET_PANSCAN: