Mercurial > mplayer.hg
changeset 16239:87da68468e6d
Get events from -wid window.
author | reimar |
---|---|
date | Tue, 16 Aug 2005 23:24:52 +0000 |
parents | 619eb5ebb0c4 |
children | d4cf25d45b13 |
files | libvo/vo_gl.c libvo/vo_gl2.c |
diffstat | 2 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_gl.c Tue Aug 16 19:09:43 2005 +0000 +++ b/libvo/vo_gl.c Tue Aug 16 23:24:52 2005 +0000 @@ -204,6 +204,9 @@ #else if (WinID >= 0) { vo_window = WinID ? (Window)WinID : mRootWin; + vo_x11_selectinput_witherr(mDisplay, vo_window, + StructureNotifyMask | KeyPressMask | PointerMotionMask | + ButtonPressMask | ButtonReleaseMask | ExposureMask); goto glconfig; } if ( vo_window == None ) {
--- a/libvo/vo_gl2.c Tue Aug 16 19:09:43 2005 +0000 +++ b/libvo/vo_gl2.c Tue Aug 16 23:24:52 2005 +0000 @@ -622,6 +622,9 @@ static int config_glx(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uint32_t flags, char *title, uint32_t format) { if (WinID >= 0) { vo_window = WinID ? (Window)WinID : mRootWin; + vo_x11_selectinput_witherr(mDisplay, vo_window, + StructureNotifyMask | KeyPressMask | PointerMotionMask | + ButtonPressMask | ButtonReleaseMask | ExposureMask); return 0; } if ( vo_window == None )