mpv/video/out
Dudemanguy a45518cf57 wayland: set current_output on surface leave if applicable
When the mpv surface leaves the output, we no longer mark it as the
current output. However, this implicitly depends on there being a
preceding surface entrance event to a different output. This is not
necessarily the case. Consider moving the window from monitor 1, to
monitor 1-2, and then back to 1 again. mpv gets the entrance event to
monitor 2 and sets that as the current output to work off of. Then when
you move back to only monitor 1, it removes monitor 2 from the current
output. However, monitor 1 is not updated again as the current output
because there is not a new surface entrance event in this case (the
window never left). So the numbers that mpv's core is using are
incorrect and for the wrong monitor. Luckily, we already keep track of
what outputs the mpv surface is currently on no matter how many there
are so it is simply a matter of setting current output again in the
leave event if we have a different output that has the mpv surface.

Ref: https://github.com/swaywm/sway/issues/7932
2024-02-08 22:26:15 +00:00
..
d3d11 csputils: replace mp_colorspace with pl_color_space 2024-01-22 14:54:55 +00:00
gpu player: remove all rpi-specific code 2024-02-05 17:41:06 +00:00
gpu_next vo_gpu_next: respect d3d11 swapchain output format preference 2024-01-06 23:46:12 +01:00
hwdec hwdec_drmprime: add P010 and P210 support 2024-01-28 13:56:58 -08:00
mac mac: add support for --input-cursor-passthrough option 2023-12-25 13:59:48 +01:00
opengl player: remove all rpi-specific code 2024-02-05 17:41:06 +00:00
placebo csputils: replace mp_chroma_location with pl_chroma_location 2024-01-22 14:54:55 +00:00
vulkan wayland: drop buffer_scale use for viewporter 2024-01-27 05:12:12 +00:00
win32 meson: adjust win32 defines 2023-11-25 12:38:20 +01:00
wldmabuf vo_dmabuf_wayland: drop linux-dmabuf-v2 (again) 2023-06-16 14:46:59 +00:00
android_common.c video/out/android: assert WinID value before use 2023-06-03 17:07:43 +02:00
android_common.h vo: change vo_platform_init to bool 2023-01-08 20:42:42 +00:00
aspect.c aspect: remove unused multiplication 2023-10-23 00:10:42 +00:00
aspect.h
bitmap_packer.c video/out/bitmap_packer: Avoid empty initializer list 2019-11-18 16:50:21 +01:00
bitmap_packer.h
cocoa_cb_common.swift mac: add support for --auto-window-resize option 2023-12-23 01:15:53 +01:00
dither.c dither: removed some unused code 2023-10-16 15:38:59 +00:00
dither.h
dr_helper.c mp_thread: prefer tracking threads with id 2023-11-05 17:36:17 +00:00
dr_helper.h mp_thread: prefer tracking threads with id 2023-11-05 17:36:17 +00:00
drm_atomic.c drm: rewrite based around vo_drm_state 2023-01-21 17:08:29 +00:00
drm_atomic.h drm: rewrite based around vo_drm_state 2023-01-21 17:08:29 +00:00
drm_common.c vo: don't sleep 1ms always when requested time is in the past 2023-11-09 21:31:58 +00:00
drm_common.h drm: use present_sync mechanism for presentation feedback 2023-11-06 15:44:45 +00:00
drm_prime.c drm_prime: fallback to drmModeAddFB2 2020-05-08 21:26:25 +02:00
drm_prime.h drm_prime: double free bug 2020-03-05 18:12:57 +01:00
filter_kernels.c vo_gpu: remove --scale-cutoff etc 2023-09-25 12:45:17 +02:00
filter_kernels.h vo_gpu: remove --scale-cutoff etc 2023-09-25 12:45:17 +02:00
libmpv.h vo: add `int flags` to the get_image signature 2023-01-23 14:13:34 +01:00
libmpv_sw.c various: drop unused #include "config.h" 2023-02-20 14:21:18 +00:00
mac_common.swift mac: add support for --auto-window-resize option 2023-12-23 01:15:53 +01:00
meson.build meson: rename all features with underscores 2023-08-20 21:13:37 +00:00
present_sync.c present_sync: remove unneeded clear_values function 2023-11-07 00:52:46 +00:00
present_sync.h present_sync: remove unneeded clear_values function 2023-11-07 00:52:46 +00:00
vo.c player: remove all rpi-specific code 2024-02-05 17:41:06 +00:00
vo.h player: ensure runtime updates of certain rendering options 2024-02-05 17:23:47 +00:00
vo_caca.c vo: fully replace draw_image with draw_frame 2023-10-01 14:48:38 +00:00
vo_direct3d.c vo_direct3d: remove redundant condition 2023-11-18 23:55:28 +00:00
vo_dmabuf_wayland.c vo_dmabuf_wayland: scale smarter in hidpi situations 2024-01-27 05:12:12 +00:00
vo_drm.c drm: use present_sync mechanism for presentation feedback 2023-11-06 15:44:45 +00:00
vo_gpu.c vo_gpu: don't pass ra_fbo by value 2023-11-28 10:46:16 +01:00
vo_gpu_next.c io: add mp_save_file 2024-01-31 15:38:21 +00:00
vo_image.c vo: fully replace draw_image with draw_frame 2023-10-01 14:48:38 +00:00
vo_kitty.c vo_kitty: init all fields of struct sigaction before using it 2023-11-28 10:46:16 +01:00
vo_lavc.c csputils: replace mp_colorspace with pl_color_space 2024-01-22 14:54:55 +00:00
vo_libmpv.c timer: remove unnecesary time conversions 2023-11-05 17:36:17 +00:00
vo_mediacodec_embed.c hwdec: fix undeclared identifier in mediacodec_embed 2023-06-28 10:29:24 -07:00
vo_null.c timer: change mp_sleep_us to mp_sleep_ns 2023-10-10 19:10:55 +00:00
vo_sdl.c vo_sdl: support the focused property 2023-12-29 11:31:18 +01:00
vo_sixel.c vo_sixel: change exit-clear handling to OPT_REPLACED 2023-09-21 16:06:29 +00:00
vo_tct.c vo: fully replace draw_image with draw_frame 2023-10-01 14:48:38 +00:00
vo_vaapi.c csputils: replace mp_colorspace with pl_color_space 2024-01-22 14:54:55 +00:00
vo_vdpau.c vo_vdpau: cosmetic changes to timings 2024-02-07 14:45:07 +00:00
vo_wlshm.c wayland: drop buffer_scale use for viewporter 2024-01-27 05:12:12 +00:00
vo_x11.c timer: add convenience time unit conversion macros 2023-10-16 15:38:59 +00:00
vo_xv.c csputils: replace mp_colorspace with pl_color_space 2024-01-22 14:54:55 +00:00
w32_common.c win32: stop waiting for messages if the window is destroyed 2024-01-21 17:54:57 +00:00
w32_common.h vo: change vo_platform_init to bool 2023-01-08 20:42:42 +00:00
wayland_common.c wayland: set current_output on surface leave if applicable 2024-02-08 22:26:15 +00:00
wayland_common.h wayland_common: prefer axis_value120 if supported 2024-02-04 02:14:11 +00:00
win_state.c win_state: add vo_calc_window_geometry3 2021-09-06 10:16:10 +03:00
win_state.h win_state: add vo_calc_window_geometry3 2021-09-06 10:16:10 +03:00
x11_common.c x11_common: support --title-bar 2024-02-02 11:39:30 +01:00
x11_common.h x11_common: allow DPI scale in unit of 0.5 2024-01-10 00:33:05 +01:00