summaryrefslogtreecommitdiffstats
path: root/libvo/x11_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'libvo/x11_common.c')
-rw-r--r--libvo/x11_common.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/libvo/x11_common.c b/libvo/x11_common.c
index beab7d4f90..408687605e 100644
--- a/libvo/x11_common.c
+++ b/libvo/x11_common.c
@@ -34,6 +34,10 @@
#include "../input/mouse.h"
#endif
+#ifdef HAVE_NEW_GUI
+#include "../Gui/interface.h"
+#endif
+
/*
* If SCAN_VISUALS is defined, vo_init() scans all available TrueColor
* visuals for the 'best' visual for MPlayer video display. Note that
@@ -429,9 +433,9 @@ int vo_x11_check_events(Display *mydisplay){
while ( XPending( mydisplay ) )
{
XNextEvent( mydisplay,&Event );
-// #ifdef HAVE_NEW_GUI
-// if ( use_gui ) gEvent( 0,(char*)&Event );
-// #endif
+ #ifdef HAVE_NEW_GUI
+ if ( use_gui ) guiGetEvent( 0,(char*)&Event );
+ #endif
if ( vo_window == Event.xany.window )
switch( Event.type )
{