diff options
-rw-r--r-- | libvo/vo_xmga.c | 7 | ||||
-rw-r--r-- | libvo/vo_xvidix.c | 8 |
2 files changed, 14 insertions, 1 deletions
diff --git a/libvo/vo_xmga.c b/libvo/vo_xmga.c index 86aeb07eca..206415b8e0 100644 --- a/libvo/vo_xmga.c +++ b/libvo/vo_xmga.c @@ -330,6 +330,13 @@ 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); #endif diff --git a/libvo/vo_xvidix.c b/libvo/vo_xvidix.c index f50e53661e..2d0882cdf7 100644 --- a/libvo/vo_xvidix.c +++ b/libvo/vo_xvidix.c @@ -334,7 +334,13 @@ if (vo_window == None) hint.base_height = hint.height = window_height; 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. */ |