mirror of https://github.com/mpv-player/mpv
Get events from -wid window.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16240 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
8eefe1cc08
commit
cbd8483a32
|
@ -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 ) {
|
||||
|
|
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue