From 9e697fca7847274b73ff59b2d5aed01caa905d36 Mon Sep 17 00:00:00 2001 From: pontscho Date: Wed, 29 Aug 2001 18:27:13 +0000 Subject: [PATCH] fix vo_window again git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1759 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_x11.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libvo/vo_x11.c b/libvo/vo_x11.c index 6f21f547eb..c728485038 100644 --- a/libvo/vo_x11.c +++ b/libvo/vo_x11.c @@ -371,8 +371,11 @@ printf( "w: %d h: %d\n\n",vo_dwidth,vo_dheight ); } if( format==IMGFMT_YV12 ) yuv2rgb_init( ( depth == 24 ) ? bpp : depth,mode ); - - if ( vo_window == None ) XSelectInput( mDisplay,mywindow,StructureNotifyMask | KeyPressMask ); + +#ifdef HAVE_NEW_GUI + if ( vo_window == None ) +#endif + XSelectInput( mDisplay,mywindow,StructureNotifyMask | KeyPressMask ); X_already_started++;