Mercurial > mplayer.hg
changeset 4784:64be405bab7b
ExposureMask fixed.
author | pontscho |
---|---|
date | Thu, 21 Feb 2002 13:28:39 +0000 |
parents | 17f29765ea77 |
children | fefd14e3072f |
files | libvo/vo_xmga.c libvo/vo_xvidix.c |
diffstat | 2 files changed, 2 insertions(+), 14 deletions(-) [+] |
line wrap: on
line diff
--- 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);
--- 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. */