# HG changeset patch # User ib # Date 1375378494 0 # Node ID d626e6b9fbc3726f224e794f869e236c7a71885e # Parent b2edfe1a11a60ce0017b79fb43c03827bc8875dd Add a redraw and event handling to GUI_PREPARE. It may take some time until MPlayer will call a GUI_REDRAW after the GUI_PREPARE, which will result in windows being exposed with unhandled events waiting. This way, windows will be redrawn earlier which looks nicer. diff -r b2edfe1a11a6 -r d626e6b9fbc3 gui/interface.c --- a/gui/interface.c Thu Aug 01 17:29:47 2013 +0000 +++ b/gui/interface.c Thu Aug 01 17:34:54 2013 +0000 @@ -52,6 +52,7 @@ #include "libmpcodecs/vf.h" #include "libvo/video_out.h" #include "libvo/x11_common.h" +#include "osdep/timer.h" #ifdef CONFIG_DVDREAD #include "stream/stream_dvd.h" #endif @@ -382,7 +383,10 @@ case GUI_PREPARE: + uiEvent(ivRedraw, True); wsMouseVisibility(&guiApp.videoWindow, wsHideMouseCursor); + usec_sleep(20000); + wsEvents(); if (guiInfo.NewPlay == GUI_FILE_NEW) { audio_id = -1;