1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-19 13:51:14 +00:00
mpv/player
ossifrage 0d384592c5 osc: reset margins when using boxvideo with showfullscreen/showwindowed
This fixes a bug where using boxvideo with showfullscreen=no or
showwindowed=no resulted in the margins not resetting when the OSC
wasn't visible.

For example, using:

script-opts=osc-visibility=always,osc-boxvideo=yes,osc-showfullscreen=no

and then going fullscreen would make the OSC disappear but the video
margins would remain. This is because boxvideo was missing a dependence
on the showfullscreen and showwindowed user options.

This is fixed by adding the corresponding conditions to update_margins()
and setting state.marginsREQ on fullscreen changes. update_margins() is
called on tick() if there's a margins update pending, which guarantees
the boxvideo margins are reset appropriately.
2021-04-27 14:12:05 +03:00
..
javascript lua/js: mp.get_mouse_pos: use the mouse-pos property 2020-11-16 20:29:58 +02:00
lua osc: reset margins when using boxvideo with showfullscreen/showwindowed 2021-04-27 14:12:05 +03:00
audio.c audio: set audio chain ao on reinit 2021-04-18 15:47:48 +00:00
client.c client API: inactivate the opengl_cb API 2020-09-03 14:52:11 +02:00
client.h scripting: remove race condition when toggling internal scripts 2020-03-26 23:59:44 +01:00
command.c player/command: add albumart argument to video-add 2021-03-09 23:28:21 +02:00
command.h command: add internal INPUT_PROCESSED event 2020-11-16 20:29:58 +02:00
configfiles.c command: add delete-watch-later-config 2020-10-22 19:53:35 +00:00
core.h player/{core,loadfile}: make cover art loading more explicit 2021-03-09 23:26:26 +02:00
external_files.c player: fix external cover file prioritization 2020-10-28 18:15:34 +01:00
external_files.h player: add automatic loading of external cover art files 2020-09-28 00:12:52 +02:00
javascript.c lua/js: mp.get_mouse_pos: use the mouse-pos property 2020-11-16 20:29:58 +02:00
loadfile.c player/{core,loadfile}: make cover art loading more explicit 2021-03-09 23:26:26 +02:00
lua.c lua/js: mp.get_mouse_pos: use the mouse-pos property 2020-11-16 20:29:58 +02:00
main.c demux: Move demuxer help to new standard mechanism 2021-03-28 19:46:32 +03:00
misc.c audio: refactor how data is passed to AO 2020-08-29 13:12:32 +02:00
osd.c player: add --term-title option 2020-05-25 20:39:37 +02:00
playloop.c command: add internal INPUT_PROCESSED event 2020-11-16 20:29:58 +02:00
screenshot.c screenshot: add --screenshot-sw option 2020-10-05 00:16:46 +02:00
screenshot.h player: make screenshot each-frame mode more accurate 2020-02-07 13:32:21 +01:00
scripting.c player/scripting: fix use-after-free when loading script folders 2021-04-08 23:47:35 +03:00
sub.c command: add property to return text subtitles in ASS 2020-05-14 22:14:49 +02:00
video.c player: let frontend decide whether to use cover-art mode 2020-09-28 00:04:21 +02:00