Mercurial > mplayer.hg
changeset 4762:81b8518d11ed
add new input cucc
author | pontscho |
---|---|
date | Wed, 20 Feb 2002 10:02:29 +0000 |
parents | bc69f5fc18fe |
children | b85890a5b0e5 |
files | libvo/vo_xmga.c libvo/vo_xvidix.c |
diffstat | 2 files changed, 14 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_xmga.c Wed Feb 20 00:19:47 2002 +0000 +++ b/libvo/vo_xmga.c Wed Feb 20 10:02:29 2002 +0000 @@ -330,6 +330,13 @@ 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
--- a/libvo/vo_xvidix.c Wed Feb 20 00:19:47 2002 +0000 +++ b/libvo/vo_xvidix.c Wed Feb 20 10:02:29 2002 +0000 @@ -334,7 +334,13 @@ 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. */