diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-08-16 23:24:52 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-08-16 23:24:52 +0000 |
commit | cbd8483a32ad778d62c158d4a31fc279f188ab21 (patch) | |
tree | a828a6ae53c914f178fc046d37967574e4c64666 | |
parent | 8eefe1cc08158018812e45435fc624fbe4e6b042 (diff) |
Get events from -wid window.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16240 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libvo/vo_gl.c | 3 | ||||
-rw-r--r-- | libvo/vo_gl2.c | 3 |
2 files changed, 6 insertions, 0 deletions
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 ) |