From c351d29392df4d69c7beae0ba41878e6335e3614 Mon Sep 17 00:00:00 2001 From: reimar Date: Wed, 19 Nov 2008 20:19:25 +0000 Subject: Factor common code like -wid handling, vo_gc creation etc. out into x11_common.c git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27961 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_xover.c | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) (limited to 'libvo/vo_xover.c') diff --git a/libvo/vo_xover.c b/libvo/vo_xover.c index 0d75b780ea..e68c562ee1 100644 --- a/libvo/vo_xover.c +++ b/libvo/vo_xover.c @@ -51,7 +51,6 @@ LIBVO_EXTERN(xover) /* X11 related variables */ /* Colorkey handling */ -static XGCValues mGCV; static int colorkey; /* Image parameters */ @@ -217,7 +216,6 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width, image_height = height; image_width = width; image_format = format; - vo_mouse_autohide=1; aspect_save_orig(width, height); aspect_save_prescale(d_width, d_height); @@ -281,31 +279,13 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width, xswa.border_pixel = 0; xswa.colormap = XCreateColormap(mDisplay, RootWindow(mDisplay, mScreen), vinfo.visual, AllocNone); - xswa.event_mask = StructureNotifyMask | ExposureMask | KeyPressMask | PropertyChangeMask | - ((WinID==0)?0:(ButtonPressMask | ButtonReleaseMask | PointerMotionMask)); - xswamask = CWBackPixel | CWBorderPixel | CWColormap | CWEventMask; + xswamask = CWBackPixel | CWBorderPixel | CWColormap; - if (WinID >= 0) - { - vo_window = WinID ? ((Window)WinID) : RootWindow(mDisplay, mScreen); - if ( WinID ) - { - XUnmapWindow(mDisplay, vo_window); - XChangeWindowAttributes(mDisplay, vo_window, xswamask, &xswa); - vo_x11_selectinput_witherr( mDisplay,vo_window,StructureNotifyMask | KeyPressMask | PropertyChangeMask | PointerMotionMask | ButtonPressMask | ButtonReleaseMask | ExposureMask ); - XMapWindow(mDisplay, vo_window); - } else XSelectInput( mDisplay,vo_window,ExposureMask ); - } - else - { vo_x11_create_vo_window(&vinfo, vo_dx, vo_dy, window_width, window_height, flags, xswa.colormap, "xvidix", title); XChangeWindowAttributes(mDisplay, vo_window, xswamask, &xswa); - } - if ( vo_gc != None ) XFreeGC( mDisplay,vo_gc ); - vo_gc = XCreateGC(mDisplay, vo_window, GCForeground, &mGCV); #ifdef CONFIG_GUI } #endif -- cgit v1.2.3