# HG changeset patch # User reimar # Date 1124234692 0 # Node ID 87da68468e6d5d6166c5324ed83eb9fe98cc2ce9 # Parent 619eb5ebb0c429ee6bc0c1e676504de822b79614 Get events from -wid window. diff -r 619eb5ebb0c4 -r 87da68468e6d libvo/vo_gl.c --- 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 ) { diff -r 619eb5ebb0c4 -r 87da68468e6d libvo/vo_gl2.c --- 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 )