From cbd8483a32ad778d62c158d4a31fc279f188ab21 Mon Sep 17 00:00:00 2001 From: reimar Date: Tue, 16 Aug 2005 23:24:52 +0000 Subject: Get events from -wid window. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16240 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_gl.c | 3 +++ libvo/vo_gl2.c | 3 +++ 2 files changed, 6 insertions(+) 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 ) -- cgit v1.2.3