1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-07 14:47:53 +00:00

ExposureMask fixed.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4785 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
pontscho 2002-02-21 13:28:39 +00:00
parent c9fdd6b630
commit 2675ddee8d
2 changed files with 2 additions and 14 deletions

View File

@ -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);

View File

@ -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. */