diff options
author | Eduardo Sánchez Muñoz <esm@eduardosm.net> | 2015-06-28 18:10:17 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-06-28 20:13:57 +0200 |
commit | db3d36927dcc8674b32c61f7e9c0f688a278bfc4 (patch) | |
tree | aa256734d1dbed13fd1972d717a23dfe7a7e912e /player | |
parent | fccce81d4232b2cd2f5da4659eb83718c4971085 (diff) | |
download | mpv-db3d36927dcc8674b32c61f7e9c0f688a278bfc4.tar.bz2 mpv-db3d36927dcc8674b32c61f7e9c0f688a278bfc4.tar.xz |
x11: Handle external fullscreen toggles
Some window managers let you change the fullscreen state of any window
using a key combination. For example, on XFWM you can use Alt+F11 and
on Compiz you can configure a key combination with the
"Extra WM actions" plugin.
With this change mpv will handle these fullscreen state changes. So, if
you enter into fullscreen mode using the WM's shortcut and then you use
mpv's fullscreen toggle, you will get back into window mode.
Merges PR #2081.
Signed-off-by: wm4 <wm4@nowhere>
Diffstat (limited to 'player')
-rw-r--r-- | player/command.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/player/command.c b/player/command.c index cc6a41946c..c4fe75dd25 100644 --- a/player/command.c +++ b/player/command.c @@ -3550,7 +3550,7 @@ static const char *const *const mp_event_property_change[] = { "demuxer-cache-duration", "demuxer-cache-idle", "paused-for-cache", "demuxer-cache-time"), E(MP_EVENT_WIN_RESIZE, "window-scale"), - E(MP_EVENT_WIN_STATE, "window-minimized", "display-names", "display-fps"), + E(MP_EVENT_WIN_STATE, "window-minimized", "display-names", "display-fps", "fullscreen"), }; #undef E |