mpv/player/lua
Philip Langdale a220f08648 osc: implement pseudo client side decorations via OSC
Today, if window decorations are not present, either because they were
disabled, or because the platform doesn't support them
(eg: gnome-shell on wayland), there are no window controls, meaning it
is not possible to minimize/maximize/close a window without knowing
keyboard shortcuts.

While you can imagine various ways of offering client side decorations,
it is attractive to consider using OSC because that is functionality
that we already have.

The main work here is defining a separate input area from the main
OSC box with its own buttons, etc.

While we could probably handle auto-detection based on whether
decorations are present or not, it's manually controlled for now.

The window control logic is mostly disconnected from the OSC itself,
except in the case of the `topbar` layout, where there has to be
coordination so that the controls don't get drawn on top of each other.

I had to do fine-positioning of the buttons based on the font on
my system, so don't be surprised if it looks wrong elsewhere.

You could also argue that window controls should be unscaled, even
if the main OSC box is scaled, but I've not tried to do this.
2019-11-29 16:56:20 +08:00
..
assdraw.lua
defaults.lua lua: make add_key_binding() rotate optional arguments correctly 2019-11-23 14:40:00 +01:00
options.lua lua: change config file logging 2019-11-01 01:52:05 +01:00
osc.lua osc: implement pseudo client side decorations via OSC 2019-11-29 16:56:20 +08:00
stats.lua stats, demux: log byte level stream seeks 2019-11-07 22:53:13 +01:00
ytdl_hook.lua ytdl_hook: --vid=no should not ignore --ytdl-format in config file 2019-10-24 13:52:09 +02:00