1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-23 08:26:56 +00:00
mpv/video/out
wm4 0c7978cf9c input: deal with spurious X11 LeaveNotify events
If the mpv window is unfocus, clicking on the OSC should focus the
window (done by the window manager) and allow interaction with the OSC.
But somehow X sends a spurious LeaveNotify event, immediately followed
by an EnterNotify event. This happens at least with IceWM. The result is
that the OSC will disappear (due to receiving MOUSE_LEAVE). The OSC will
stay invisible, because EnterNotify isn't handled, and there's nothing
that could make the OSC appear again.

Solve this by handling EnterNotify. We cause a redundant MOUSE_MOVE
event to be sent, which triggers the code to make the OSC visible. We
have to remove the code from input.c, which ignores redundant mouse move
events.

Since the code ignoring redundant mouse move events is still needed on
Windows, move that code to w32_common.c. The need for this is documented
in the code, also see commit 03fd2fe. (The original idea was to save
some code by having this code in the core, but now it turns out that
this didn't quite work out.)
2013-09-01 20:17:51 +02:00
..
aspect.c options: remove --panscanrange option 2013-08-19 12:55:53 +02:00
aspect.h video: simplify aspect calculation stuff 2013-03-17 22:07:13 +01:00
bitmap_packer.c core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
bitmap_packer.h
cocoa_common.h cocoa_common: remove play/pause VOCTRL functions 2013-06-14 07:34:47 +02:00
cocoa_common.m cocoa_common: enable click-through on the video view 2013-09-01 16:10:57 +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
filter_kernels.h
gl_cocoa.c video/out: introduce vo_control for gl_common based VOs 2013-05-26 16:44:18 +02:00
gl_common.c core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
gl_common.h core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
gl_header_fixes.h gl_header_fixes: add GL_RGBA32F 2013-03-28 22:55:56 +01:00
gl_lcms.c core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
gl_lcms.h vo_opengl: split into multiple files, convert to new option API 2013-03-28 21:46:17 +01:00
gl_osd.c add a way to resize window contents without VO resize 2013-05-12 15:27:54 +02:00
gl_osd.h add a way to resize window contents without VO resize 2013-05-12 15:27:54 +02:00
gl_video_shaders.glsl gl_video: add support for more rgb formats 2013-07-18 13:52:38 +02:00
gl_video.c gl_video: don't crash if no FBOs are available 2013-08-28 23:08:28 +02:00
gl_video.h video: handle video output levels with mp_image_params 2013-08-24 19:40:18 +02:00
gl_w32.c video/out: introduce vo_control for gl_common based VOs 2013-05-26 16:44:18 +02:00
gl_wayland.c wayland: don't create our own log context 2013-08-26 16:39:05 +02:00
gl_x11.c video/out: introduce vo_control for gl_common based VOs 2013-05-26 16:44:18 +02:00
pnm_loader.c
pnm_loader.h
vo_caca.c Some more mp_msg conversions 2013-08-23 23:30:09 +02:00
vo_corevideo.c vo_corevideo: use dwidth/dheight for window dimensions 2013-08-25 21:14:59 +02:00
vo_direct3d.c Some more mp_msg conversions 2013-08-23 23:30:09 +02:00
vo_image.c vo_image: simplify 2013-08-24 17:11:59 +02:00
vo_lavc.c core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
vo_null.c core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
vo_opengl_old.c core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
vo_opengl.c video: handle video output levels with mp_image_params 2013-08-24 19:40:18 +02:00
vo_sdl.c Some more mp_msg conversions 2013-08-23 23:30:09 +02:00
vo_vaapi.c vo_vaapi: potentially fix screenshot colorspace issues 2013-08-24 16:32:48 +02:00
vo_vdpau.c Some more mp_msg conversions 2013-08-23 23:30:09 +02:00
vo_wayland.c wayland/shm: rework format handling 2013-08-26 20:34:06 +02:00
vo_x11.c video/out: don't require VOs to handle screenshot aspect specially 2013-08-24 17:03:06 +02:00
vo_xv.c video/out: don't require VOs to handle screenshot aspect specially 2013-08-24 17:03:06 +02:00
vo.c video: add unscaled mode with --video-unscaled 2013-09-01 03:46:28 +02:00
vo.h video: add vaapi decode and output support 2013-08-12 01:12:02 +02:00
w32_common.c input: deal with spurious X11 LeaveNotify events 2013-09-01 20:17:51 +02:00
w32_common.h input: deal with spurious X11 LeaveNotify events 2013-09-01 20:17:51 +02:00
wayland_common.c wayland: fix memory leaks 2013-08-26 20:34:06 +02:00
wayland_common.h wayland: don't create our own log context 2013-08-26 16:39:05 +02:00
x11_common.c input: deal with spurious X11 LeaveNotify events 2013-09-01 20:17:51 +02:00
x11_common.h video: remove fullscreen flags chaos 2013-07-18 14:07:21 +02:00