$OpenBSD: patch-mpeg2_video_video_output_x11_c,v 1.6 2002/07/16 13:38:04 espie Exp $
--- mpeg2_video/video_output_x11.c.orig	Sun Jun 30 00:04:31 2002
+++ mpeg2_video/video_output_x11.c	Tue Jul 16 15:17:38 2002
@@ -1225,6 +1225,12 @@ void check_x_events(yuv_image_t *current
 	if(keysym == XK_I) {
 	  screenshot_spu = 1;
 	}
+	if (keysym == XK_1) {
+	  subtitle_pos[subtitle_index]++;
+	}
+	if (keysym == XK_2) {
+		subtitle_pos[subtitle_index]--;
+	}
       }
       break;
     case ButtonPress:
@@ -1771,6 +1777,8 @@ static void draw_win_x11(window_info *dw
 	      window.video_area.height);
     XSync(mydisplay, False);
   }
+  if (window.win_state == WINDOW_STATE_FULLSCREEN)
+  	XForceScreenSaver(mydisplay, ScreenSaverReset);
 }
 
 
@@ -1854,6 +1862,8 @@ static void draw_win_xv(window_info *dwi
        It waits for an XShmCompletionEvent */
     XIfEvent(mydisplay, &ev, predicate, NULL);
   }
+  if (window.win_state == WINDOW_STATE_FULLSCREEN)
+  	XForceScreenSaver(mydisplay, ScreenSaverReset);
 #endif /* HAVE_XV */
 }
 
