diff options
-rw-r--r-- | libvo/vo_xmga.c | 8 | ||||
-rw-r--r-- | libvo/vo_xvidix.c | 8 |
2 files changed, 2 insertions, 14 deletions
diff --git a/libvo/vo_xmga.c b/libvo/vo_xmga.c index 206415b8e0..8daee3c69c 100644 --- a/libvo/vo_xmga.c +++ b/libvo/vo_xmga.c @@ -302,7 +302,7 @@ static uint32_t config( uint32_t width, uint32_t height, uint32_t d_width, uint3 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 @@ static uint32_t config( uint32_t width, uint32_t height, uint32_t d_width, uint3 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 --git a/libvo/vo_xvidix.c b/libvo/vo_xvidix.c index 2d0882cdf7..a596546f35 100644 --- a/libvo/vo_xvidix.c +++ b/libvo/vo_xvidix.c @@ -305,7 +305,7 @@ if (vo_window == None) 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 @@ if (vo_window == None) 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. */ |