diff --git a/libvo/vo_gl.c b/libvo/vo_gl.c index 9203dee5cf..79add98e76 100644 --- a/libvo/vo_gl.c +++ b/libvo/vo_gl.c @@ -204,6 +204,9 @@ config(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uin #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 --git a/libvo/vo_gl2.c b/libvo/vo_gl2.c index f746aa937c..3838523bfc 100644 --- a/libvo/vo_gl2.c +++ b/libvo/vo_gl2.c @@ -622,6 +622,9 @@ static int choose_glx_visual(Display *dpy, int scr, XVisualInfo *res_vi) 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 )