mpv/video
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
..
decode ALL: use new mp_thread abstraction 2023-11-05 17:36:17 +00:00
filter all: add missing repr assignments 2024-01-26 18:17:02 +02:00
out wayland: set current_output on surface leave if applicable 2024-02-08 22:26:15 +00:00
csputils.c player: ensure runtime updates of certain rendering options 2024-02-05 17:23:47 +00:00
csputils.h csputils: replace more primitives with pl_ 2024-01-22 14:54:55 +00:00
cuda.c cuda: move --cuda-device to cuda_opts group 2023-09-22 14:20:38 +00:00
d3d.c vo: add missing return variable assignment 2023-11-18 23:55:28 +00:00
d3d.h
drmprime.c
fmt-conversion.c
fmt-conversion.h
hwdec.c ALL: use new mp_thread abstraction 2023-11-05 17:36:17 +00:00
hwdec.h hwtransfer: use the right hardware config to find conversion targets 2023-08-26 10:07:55 -07:00
image_loader.c
image_loader.h
image_writer.c csputils: replace mp_chroma_location with pl_chroma_location 2024-01-22 14:54:55 +00:00
image_writer.h
img_format.c csputils: replace mp_colorspace with pl_color_space 2024-01-22 14:54:55 +00:00
img_format.h csputils: replace mp_colorspace with pl_color_space 2024-01-22 14:54:55 +00:00
mp_image.c all: add missing repr assignments 2024-01-26 18:17:02 +02:00
mp_image.h csputils: replace mp_chroma_location with pl_chroma_location 2024-01-22 14:54:55 +00:00
mp_image_pool.c chmap: mp_image_pool: drop stale mentions of Libav in comments 2024-01-20 16:10:20 +00:00
mp_image_pool.h
repack.c csputils: replace mp_colorspace with pl_color_space 2024-01-22 14:54:55 +00:00
repack.h
sws_utils.c csputils: replace mp_chroma_location with pl_chroma_location 2024-01-22 14:54:55 +00:00
sws_utils.h
vaapi.c csputils: replace mp_colorspace with pl_color_space 2024-01-22 14:54:55 +00:00
vaapi.h csputils: replace mp_colorspace with pl_color_space 2024-01-22 14:54:55 +00:00
vdpau.c ALL: use new mp_thread abstraction 2023-11-05 17:36:17 +00:00
vdpau.h ALL: use new mp_thread abstraction 2023-11-05 17:36:17 +00:00
vdpau_functions.inc
vdpau_mixer.c csputils: replace more primitives with pl_ 2024-01-22 14:54:55 +00:00
vdpau_mixer.h
zimg.c csputils: replace more primitives with pl_ 2024-01-22 14:54:55 +00:00
zimg.h