# HG changeset patch # User pontscho # Date 1014298119 0 # Node ID 64be405bab7bb4c46119daa2fad7d3139fa051eb # Parent 17f29765ea771e519d66d0f3b67f1b4337c5454c ExposureMask fixed. diff -r 17f29765ea77 -r 64be405bab7b libvo/vo_xmga.c --- a/libvo/vo_xmga.c Thu Feb 21 13:14:52 2002 +0000 +++ b/libvo/vo_xmga.c Thu Feb 21 13:28:39 2002 +0000 @@ -302,7 +302,7 @@ xWAttribs.colormap=XCreateColormap( mDisplay,RootWindow( mDisplay,mScreen ),vinfo.visual,AllocNone ); xWAttribs.background_pixel=0; xWAttribs.border_pixel=0; - xWAttribs.event_mask=StructureNotifyMask | ExposureMask | KeyPressMask; + xWAttribs.event_mask=StructureNotifyMask | ExposureMask | KeyPressMask | ButtonPressMask | ButtonReleaseMask; xswamask=CWBackPixel | CWBorderPixel | CWColormap | CWEventMask; if ( WinID>=0 ){ @@ -330,12 +330,6 @@ XSetNormalHints( mDisplay,mWindow,&hint ); XStoreName( mDisplay,mWindow,mTitle ); XMapWindow( mDisplay,mWindow ); - - XSelectInput(mDisplay, mWindow, StructureNotifyMask | KeyPressMask -#ifdef HAVE_NEW_INPUT - | ButtonPressMask | ButtonReleaseMask -#endif - ); #ifdef HAVE_XINERAMA vo_x11_xinerama_move(mDisplay,mWindow); diff -r 17f29765ea77 -r 64be405bab7b libvo/vo_xvidix.c --- a/libvo/vo_xvidix.c Thu Feb 21 13:14:52 2002 +0000 +++ b/libvo/vo_xvidix.c Thu Feb 21 13:28:39 2002 +0000 @@ -305,7 +305,7 @@ xswa.border_pixel = 0; xswa.colormap = XCreateColormap(mDisplay, RootWindow(mDisplay, mScreen), vinfo.visual, AllocNone); - xswa.event_mask = StructureNotifyMask | ExposureMask | KeyPressMask; + xswa.event_mask = StructureNotifyMask | ExposureMask | KeyPressMask | ButtonPressMask | ButtonReleaseMask; xswamask = CWBackPixel | CWBorderPixel | CWColormap | CWEventMask; if (WinID >= 0) @@ -335,12 +335,6 @@ hint.flags = USPosition | USSize; XSetNormalHints(mDisplay, mWindow, &hint); - XSelectInput(mDisplay, mWindow, StructureNotifyMask | KeyPressMask -#ifdef HAVE_NEW_INPUT - | ButtonPressMask | ButtonReleaseMask -#endif - ); - XStoreName(mDisplay, mWindow, title); /* Map window. */