mpv/player/lua
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
..
assdraw.lua osc: improve look of seekranges 2019-09-02 01:11:04 +03:00
auto_profiles.lua auto_profiles: fix compile_cond on lua 5.1 2020-12-08 17:29:19 +00:00
console.lua console: use wl-paste on Wayland 2020-12-14 22:43:34 +00:00
defaults.lua lua/js: mp.get_mouse_pos: use the mouse-pos property 2020-11-16 20:29:58 +02:00
options.lua lua: windows got what users crave 2020-05-27 15:01:39 +02:00
osc.lua osc: reset margins when using boxvideo with showfullscreen/showwindowed 2021-04-27 14:12:05 +03:00
stats.lua stats.lua: include a filter's @label when displaying filters on page 1 2021-03-15 23:00:42 +02:00
ytdl_hook.lua ytdl_hook: fix crash on missing track bitrate 2021-03-08 14:01:34 +02:00