1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-11 17:39:38 +00:00
mpv/video/out
wm4 64b7811c28 x11: when using --wid, inherit event flags from parent window
When embedding a X window, it's hard to control whether it receives
mouse/keyboard input or not. It seems the X protocol itself makes this
hard (basically due to the outdated design mismatching with modern
toolkits), and we have to take care of these things explicitly.

Simply do this by manually querying and using the parent window event
flags.

This restores some MPlayer behavior (it doesn't add back exactly the
same code, but it's very similar).

This probably has some potential to interfere with libmpv embedding, so
bump the client API minor.

CC: @mpv-player/stable (if applied, client-api-changes.rst has to be
    adjusted to include the 0.5.2 release)
2014-08-31 14:48:26 +02:00
..
cocoa cocoa: macosx_application needs cocoa-application 2014-08-06 09:31:59 +02:00
aspect.c vo: add some general support code for VOs that allow rotation 2014-04-21 02:57:16 +02:00
aspect.h vo: add some general support code for VOs that allow rotation 2014-04-21 02:57:16 +02:00
bitmap_packer.c bitmap_packer: use printf() for fatal message 2013-12-21 20:50:11 +01:00
bitmap_packer.h
cocoa_common.h cocoa: move CGL context creation to gl_cocoa 2014-07-08 21:06:57 +02:00
cocoa_common.m cocoa: macosx_application needs cocoa-application 2014-08-06 09:31:59 +02:00
d3d_shader_yuv.h
d3d_shader_yuv.hlsl vo_direct3d: remove 2ch hack for 10 bit playback 2013-01-13 20:04:14 +01:00
dither.c dither: don't use long double 2013-07-05 20:26:32 +02:00
dither.h gl_video: improve dithering 2013-05-26 16:44:20 +02:00
filter_kernels.c vo_opengl: add parameter to gaussian filter 2014-08-26 22:19:32 +02:00
filter_kernels.h vo_opengl: add radius options for filters 2014-08-26 22:19:30 +02:00
gl_cocoa.c cocoa: fix compilation on OS X 10.8 2014-07-14 07:21:44 +02:00
gl_common.c vo_opengl: don't pass (char*)NULL as %s printf argument 2014-08-28 01:52:15 +02:00
gl_common.h Move compat/ and bstr/ directory contents somewhere else 2014-08-29 12:31:52 +02:00
gl_header_fixes.h gl_video: support packed YUV formats with Apple extensions 2013-12-02 09:03:30 +01:00
gl_hwdec_vaglx.c vaapi: try dealing with Intel's braindamaged shit drivers 2014-08-21 22:45:58 +02:00
gl_hwdec_vda.c vda: fix build on OS X 10.7 2014-01-02 22:45:39 +01:00
gl_hwdec_vdpau.c vo_vdpau, vo_opengl: handle vdpau preemption differently 2014-05-10 10:44:16 +02:00
gl_lcms.c Move compat/ and bstr/ directory contents somewhere else 2014-08-29 12:31:52 +02:00
gl_lcms.h vo_opengl, cocoa: allow to autoselect a color profile 2014-03-31 22:07:33 +02:00
gl_osd.c vo_opengl: simplify redraw callback OSD handling 2014-06-16 01:00:59 +02:00
gl_osd.h vo_opengl: simplify redraw callback OSD handling 2014-06-16 01:00:59 +02:00
gl_video_shaders.glsl vo_opengl: remove macro operator from shader 2014-08-29 20:56:03 +02:00
gl_video.c vo_opengl: remove macro operator from shader 2014-08-29 20:56:03 +02:00
gl_video.h vo_opengl: add radius options for filters 2014-08-26 22:19:30 +02:00
gl_w32.c win32: fix build 2014-08-05 23:43:40 +02:00
gl_wayland.c gl_wayland: fix crash after eglInitialze failed 2014-08-30 10:17:51 +02:00
gl_x11.c gl_x11: remove workaround for PPC OSX 10.4 2014-05-31 21:56:45 +02:00
pnm_loader.c Audit and replace all ctype.h uses 2014-07-01 23:11:08 +02:00
pnm_loader.h
vo_caca.c vo: remove vo_mouse_movement() wrapper 2014-07-27 21:53:29 +02:00
vo_corevideo.c vo: make draw_image and vo_queue_image transfer image ownership 2014-06-17 23:05:50 +02:00
vo_direct3d.c vo_direct3d: allow resizing before video init 2014-08-06 20:30:47 +02:00
vo_image.c Move compat/ and bstr/ directory contents somewhere else 2014-08-29 12:31:52 +02:00
vo_lavc.c Move compat/ and bstr/ directory contents somewhere else 2014-08-29 12:31:52 +02:00
vo_null.c vo: make draw_image and vo_queue_image transfer image ownership 2014-06-17 23:05:50 +02:00
vo_opengl_old.c Audit and replace all ctype.h uses 2014-07-01 23:11:08 +02:00
vo_opengl.c Move compat/ and bstr/ directory contents somewhere else 2014-08-29 12:31:52 +02:00
vo_sdl.c video: move display and timing to a separate thread 2014-08-12 23:24:08 +02:00
vo_vaapi.c vaapi: try dealing with Intel's braindamaged shit drivers 2014-08-21 22:45:58 +02:00
vo_vdpau.c video: take refresh rate changes into account 2014-08-17 02:50:59 +02:00
vo_wayland.c vo_wayland: fix formatting inconsistencies 2014-08-20 16:40:33 +02:00
vo_x11.c vo_x11: fix build with older Libav versions 2014-07-28 21:48:43 +02:00
vo_xv.c vo: different hack for VOs which need to mangle mouse input 2014-07-27 21:33:11 +02:00
vo.c Move compat/ and bstr/ directory contents somewhere else 2014-08-29 12:31:52 +02:00
vo.h video: don't assume query_format is thread-safe 2014-08-20 21:35:45 +02:00
w32_common.c video: move display and timing to a separate thread 2014-08-12 23:24:08 +02:00
w32_common.h win32: create OpenGL context on the GUI thread 2014-08-05 20:02:23 +02:00
wayland_common.c Move compat/ and bstr/ directory contents somewhere else 2014-08-29 12:31:52 +02:00
wayland_common.h wayland: dynamically report display fps 2014-08-18 22:00:39 +02:00
win_state.c video/out: separate out code to compute window size 2014-05-06 20:22:32 +02:00
win_state.h video/out: separate out code to compute window size 2014-05-06 20:22:32 +02:00
x11_common.c x11: when using --wid, inherit event flags from parent window 2014-08-31 14:48:26 +02:00
x11_common.h x11: listen to xrandr events 2014-08-17 15:39:18 +02:00
x11_icon.bin x11: add window icon 2013-09-01 23:27:33 +02:00